Skip to content

Commit

Permalink
fix: (test) change expected exception due to frappe/frappe#16454
Browse files Browse the repository at this point in the history
(cherry picked from commit 93f6346)
  • Loading branch information
marination authored and mergify-bot committed Mar 31, 2022
1 parent 84247e9 commit 40a154e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/assets/doctype/asset/test_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_available_for_use_date_is_after_purchase_date(self):
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)
Expand Down

0 comments on commit 40a154e

Please sign in to comment.