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.material_request_type = "Material Issue"
|
||||
mr.submit()
|
||||
frappe.db.value_cache = {}
|
||||
frappe.db.value_cache.clear()
|
||||
|
||||
# testing bin value after material request is submitted
|
||||
self.assertEqual(_get_requested_qty(), existing_requested_qty - 54.0)
|
||||
|
||||
Reference in New Issue
Block a user