Skip to content

Commit

Permalink
test: clear singles cache for changed settings (#29430)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored Jan 24, 2022
1 parent 108d104 commit 3d3f013
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def test_case(self):
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:
Expand Down

0 comments on commit 3d3f013

Please sign in to comment.