mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 18:21:22 +00:00
test: remove manual cleanup of db.value_cache (#47904)
test: clear cache instead of replacing
This commit is contained in:
@@ -720,7 +720,7 @@ class TestMaterialRequest(IntegrationTestCase):
|
|||||||
mr = frappe.copy_doc(self.globalTestRecords["Material Request"][0])
|
mr = frappe.copy_doc(self.globalTestRecords["Material Request"][0])
|
||||||
mr.material_request_type = "Material Issue"
|
mr.material_request_type = "Material Issue"
|
||||||
mr.submit()
|
mr.submit()
|
||||||
frappe.db.value_cache = {}
|
frappe.db.value_cache.clear()
|
||||||
|
|
||||||
# testing bin value after material request is submitted
|
# testing bin value after material request is submitted
|
||||||
self.assertEqual(_get_requested_qty(), existing_requested_qty - 54.0)
|
self.assertEqual(_get_requested_qty(), existing_requested_qty - 54.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user