fix: (test) change expected exception due to https://github.com/frappe/frappe/pull/16454
This commit is contained in:
parent
982a246eec
commit
93f6346cea
@ -68,7 +68,7 @@ class TestAsset(AssetSetup):
|
|||||||
def test_item_exists(self):
|
def test_item_exists(self):
|
||||||
asset = create_asset(item_code="MacBook", do_not_save=1)
|
asset = create_asset(item_code="MacBook", do_not_save=1)
|
||||||
|
|
||||||
self.assertRaises(frappe.DoesNotExistError, asset.save)
|
self.assertRaises(frappe.ValidationError, asset.save)
|
||||||
|
|
||||||
def test_validate_item(self):
|
def test_validate_item(self):
|
||||||
asset = create_asset(item_code="MacBook Pro", do_not_save=1)
|
asset = create_asset(item_code="MacBook Pro", do_not_save=1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user