fix(test): Item MacBook does not exist

This commit is contained in:
Saqib Ansari 2022-03-31 12:48:00 +05:30
parent 199a6da960
commit 4623a1bc57

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)