commit | 3d3f0139fd2df42a7753c7d2560e2451819dee92 | [log] [tgz] |
---|---|---|
author | Ankush Menat <ankush@frappe.io> | Mon Jan 24 18:44:08 2022 +0530 |
committer | GitHub <noreply@github.com> | Mon Jan 24 18:44:08 2022 +0530 |
tree | bfa0514d736b27bae003fd41f8213a9e10ac69d6 | |
parent | 108d1045e6c7540f287ec8269714e12e3bb2645f [diff] |
test: clear singles cache for changed settings (#29430)
diff --git a/erpnext/tests/utils.py b/erpnext/tests/utils.py index bc9f04e..2bd7e9e 100644 --- a/erpnext/tests/utils.py +++ b/erpnext/tests/utils.py
@@ -92,6 +92,8 @@ for key, value in settings_dict.items(): setattr(settings, key, value) settings.save() + # singles are cached by default, clear to avoid flake + frappe.db.value_cache[settings] = {} yield # yield control to calling function finally: