test_swagger_ui_oauth2_redirect() — fastapi Function Reference
Architecture documentation for the test_swagger_ui_oauth2_redirect() function in test_custom_swagger_ui_redirect.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 8ba1e142_6e0f_acc1_1158_192feee68c0d["test_swagger_ui_oauth2_redirect()"] c7f398ca_88a4_824a_0de6_f116e3d85e08["test_custom_swagger_ui_redirect.py"] 8ba1e142_6e0f_acc1_1158_192feee68c0d -->|defined in| c7f398ca_88a4_824a_0de6_f116e3d85e08 style 8ba1e142_6e0f_acc1_1158_192feee68c0d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_custom_swagger_ui_redirect.py lines 29–33
def test_swagger_ui_oauth2_redirect():
response = client.get(swagger_ui_oauth2_redirect_url)
assert response.status_code == 200, response.text
assert response.headers["content-type"] == "text/html; charset=utf-8"
assert "window.opener.swaggerUIRedirectOauth2" in response.text
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_swagger_ui_oauth2_redirect() do?
test_swagger_ui_oauth2_redirect() is a function in the fastapi codebase, defined in tests/test_custom_swagger_ui_redirect.py.
Where is test_swagger_ui_oauth2_redirect() defined?
test_swagger_ui_oauth2_redirect() is defined in tests/test_custom_swagger_ui_redirect.py at line 29.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free