mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
fix(test): Item MacBook does not exist
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user