test: Clear hook cache after updating hook
This commit is contained in:
parent
96de436219
commit
78206bea8f
1 changed files with 2 additions and 3 deletions
|
|
@ -146,9 +146,6 @@ class TestWebsite(unittest.TestCase):
|
|||
})
|
||||
website_settings.save()
|
||||
|
||||
frappe.cache().delete_key('app_hooks')
|
||||
frappe.cache().delete_key('website_redirects')
|
||||
|
||||
set_request(method='GET', path='/testfrom')
|
||||
response = get_response()
|
||||
self.assertEqual(response.status_code, 301)
|
||||
|
|
@ -190,3 +187,5 @@ def set_home_page_hook(key, value):
|
|||
delattr(hooks, hook)
|
||||
|
||||
setattr(hooks, key, value)
|
||||
frappe.cache().delete_key('app_hooks')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue