Browse Source

reset openapi_schema between tests

Falko Schindler 1 năm trước cách đây
mục cha
commit
06acf0c445
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      tests/conftest.py

+ 1 - 0
tests/conftest.py

@@ -34,6 +34,7 @@ def capabilities(capabilities: Dict) -> Dict:
 def reset_globals() -> Generator[None, None, None]:
     for path in {'/'}.union(globals.page_routes.values()):
         globals.app.remove_route(path)
+    globals.app.openapi_schema = None
     globals.app.middleware_stack = None
     globals.app.user_middleware.clear()
     # NOTE favicon routes must be removed separately because they are not "pages"