commit | 93f6346ceaaba582fc84ca090049bda48997e48b | [log] [tgz] |
---|---|---|
author | marination <maricadsouza221197@gmail.com> | Thu Mar 31 13:07:51 2022 +0530 |
committer | marination <maricadsouza221197@gmail.com> | Thu Mar 31 13:07:51 2022 +0530 |
tree | f9c6a70eadd2ad5581c75d6b987b909f4cc37261 | |
parent | 982a246eecfa0bbe9f1d31c06905227b0671267d [diff] |
fix: (test) change expected exception due to https://github.com/frappe/frappe/pull/16454
diff --git a/erpnext/assets/doctype/asset/test_asset.py b/erpnext/assets/doctype/asset/test_asset.py index f681b34..e759ad0 100644 --- a/erpnext/assets/doctype/asset/test_asset.py +++ b/erpnext/assets/doctype/asset/test_asset.py
@@ -68,7 +68,7 @@ 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)