|
@@ -40,6 +40,7 @@ def reset_globals() -> Generator[None, None, None]:
|
|
|
for path in {'/'}.union(globals.page_routes.values()):
|
|
|
globals.app.remove_route(path)
|
|
|
globals.app.middleware_stack = None
|
|
|
+ globals.app.user_middleware.clear()
|
|
|
# NOTE favicon routes must be removed separately because they are not "pages"
|
|
|
[globals.app.routes.remove(r) for r in globals.app.routes if r.path.endswith('/favicon.ico')]
|
|
|
importlib.reload(globals)
|