Skip to content

Commit

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

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

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

if pr2.docstatus == 1 and frappe.db.get_value('Stock Ledger Entry',
{'voucher_no': pr2.name, 'is_cancelled': 0}, 'name'):
pr2.cancel()

po.load_from_db()
po.cancel()

def test_serial_no_supplier(self):
pr = make_purchase_receipt(item_code="_Test Serialized Item With Series", qty=1)
Expand Down

0 comments on commit 7ba8c82

Please sign in to comment.