Skip to content

Commit

Permalink
test: fix flaky purchase receipt test (frappe#26859)
Browse files Browse the repository at this point in the history
# Conflicts:
#	erpnext/stock/doctype/purchase_receipt/test_purchase_receipt.py
  • Loading branch information
ankush committed Aug 9, 2021
1 parent ea83e2b commit de1abd8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions erpnext/stock/doctype/purchase_receipt/test_purchase_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,18 +324,7 @@ def test_subcontracting_over_receipt(self):

pr1.submit()
self.assertRaises(frappe.ValidationError, pr2.submit)

pr1.cancel()
se.cancel()
se1.cancel()
se2.cancel()
se3.cancel()
po.reload()
pr2.load_from_db()
pr2.cancel()

po.load_from_db()
po.cancel()
frappe.db.rollback()

def test_serial_no_supplier(self):
pr = make_purchase_receipt(item_code="_Test Serialized Item With Series", qty=1)
Expand Down Expand Up @@ -1040,7 +1029,7 @@ def test_service_item_purchase_with_perpetual_inventory(self):
'account': srbnb_account,
'voucher_detail_no': pr.items[1].name
}, pluck="name")

# check if the entries are not merged into one
# seperate entries should be made since voucher_detail_no is different
self.assertEqual(len(item_one_gl_entry), 1)
Expand Down

0 comments on commit de1abd8

Please sign in to comment.