Merge pull request #19141 from edx/jmbowman/TE-2790
TE-2790 Fix microsite config leak in tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user