test: remove manual cleanup of db.value_cache (#47904)

test: clear cache instead of replacing
This commit is contained in:
Ankush Menat
2025-06-05 15:07:19 +05:30
committed by GitHub
parent bb903a4bef
commit 7720163e4c

View File

@@ -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)