test: fix flaky bin value test

This commit is contained in:
Ankush Menat 2022-03-02 12:29:03 +05:30 committed by Ankush Menat
parent eb8495a401
commit 5d85b35f41

View File

@ -161,6 +161,15 @@ class TestPurchaseReceipt(FrappeTestCase):
qty=abs(existing_bin_qty)
)
existing_bin_qty, existing_bin_stock_value = frappe.db.get_value(
"Bin",
{
"item_code": "_Test Item",
"warehouse": "_Test Warehouse - _TC"
},
["actual_qty", "stock_value"]
)
pr = make_purchase_receipt()
stock_value_difference = frappe.db.get_value(