fix: (test) change expected exception due to https://github.com/frappe/frappe/pull/16454

This commit is contained in:
marination 2022-03-31 13:07:51 +05:30
parent 982a246eec
commit 93f6346cea

View File

@ -68,7 +68,7 @@ class TestAsset(AssetSetup):
def test_item_exists(self):
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):
asset = create_asset(item_code="MacBook Pro", do_not_save=1)