Home / Function/ test_swagger_ui_oauth2_redirect_html() — fastapi Function Reference

test_swagger_ui_oauth2_redirect_html() — fastapi Function Reference

Architecture documentation for the test_swagger_ui_oauth2_redirect_html() function in test_tutorial002.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  f83310e2_cc3b_76b2_a34e_473ca79b68e6["test_swagger_ui_oauth2_redirect_html()"]
  a6788c5d_0ba3_0175_27ee_0487b3d446bc["test_tutorial002.py"]
  f83310e2_cc3b_76b2_a34e_473ca79b68e6 -->|defined in| a6788c5d_0ba3_0175_27ee_0487b3d446bc
  style f83310e2_cc3b_76b2_a34e_473ca79b68e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py lines 27–30

def test_swagger_ui_oauth2_redirect_html(client: TestClient):
    response = client.get("/docs/oauth2-redirect")
    assert response.status_code == 200, response.text
    assert "window.opener.swaggerUIRedirectOauth2" in response.text

Domain

Subdomains

Frequently Asked Questions

What does test_swagger_ui_oauth2_redirect_html() do?
test_swagger_ui_oauth2_redirect_html() is a function in the fastapi codebase, defined in tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py.
Where is test_swagger_ui_oauth2_redirect_html() defined?
test_swagger_ui_oauth2_redirect_html() is defined in tests/test_tutorial/test_custom_docs_ui/test_tutorial002.py at line 27.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free