Skip to content
Snippets Groups Projects
Commit f1668c3e authored by Jeremy Bowman's avatar Jeremy Bowman
Browse files

TE-2790 Fix microsite config leak in tests

parent 038d7f2b
Branches
Tags
No related merge requests found
......@@ -737,8 +737,11 @@ def set_microsite(domain):
"""
Execute the function after setting up the microsite.
"""
microsite.set_by_domain(domain)
return func(request, *args, **kwargs)
try:
microsite.set_by_domain(domain)
return func(request, *args, **kwargs)
finally:
microsite.clear()
return inner
return decorator
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment