test: clear singles cache for changed settings (#29430)
This commit is contained in:
parent
108d1045e6
commit
3d3f0139fd
@ -92,6 +92,8 @@ def change_settings(doctype, settings_dict):
|
|||||||
for key, value in settings_dict.items():
|
for key, value in settings_dict.items():
|
||||||
setattr(settings, key, value)
|
setattr(settings, key, value)
|
||||||
settings.save()
|
settings.save()
|
||||||
|
# singles are cached by default, clear to avoid flake
|
||||||
|
frappe.db.value_cache[settings] = {}
|
||||||
yield # yield control to calling function
|
yield # yield control to calling function
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user