Home / Function/ test_swagger_ui_oauth2_redirect() — fastapi Function Reference

test_swagger_ui_oauth2_redirect() — fastapi Function Reference

Architecture documentation for the test_swagger_ui_oauth2_redirect() function in test_application.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  9fbeedb5_f4e0_e946_9430_f82ab1a4a2d2["test_swagger_ui_oauth2_redirect()"]
  9ddbfdd1_7392_6722_db09_7324223655a8["test_application.py"]
  9fbeedb5_f4e0_e946_9430_f82ab1a4a2d2 -->|defined in| 9ddbfdd1_7392_6722_db09_7324223655a8
  style 9fbeedb5_f4e0_e946_9430_f82ab1a4a2d2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_application.py lines 35–39

def test_swagger_ui_oauth2_redirect():
    response = client.get("/docs/oauth2-redirect")
    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

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_application.py.
Where is test_swagger_ui_oauth2_redirect() defined?
test_swagger_ui_oauth2_redirect() is defined in tests/test_application.py at line 35.

Analyze Your Own Codebase

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

Try Supermodel Free