Skip to content

Commit

Permalink
test(fix): fixed test case
Browse files Browse the repository at this point in the history
  • Loading branch information
noahjacob committed Aug 10, 2021
1 parent 10ce2f5 commit 8501bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/accounts/doctype/coupon_code/test_coupon_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_create_test_data():
})
item_price.insert()
# create test item pricing rule
if not frappe.db.exists("Pricing Rule","_Test Pricing Rule for _Test Item"):
if not frappe.db.exists("Pricing Rule",{"title": "_Test Pricing Rule for _Test Item"}):
item_pricing_rule = frappe.get_doc({
"doctype": "Pricing Rule",
"title": "_Test Pricing Rule for _Test Item",
Expand Down Expand Up @@ -102,7 +102,7 @@ def setUp(self):
test_create_test_data()

def tearDown(self):
frappe.set_user("Administrator")
frappe.set_user("Administrator")

def test_sales_order_with_coupon_code(self):
frappe.db.set_value("Coupon Code", "SAVE30", "used", 0)
Expand Down

0 comments on commit 8501bab

Please sign in to comment.