Home / Function/ test_security_http_bearer_incorrect_scheme_credentials() — fastapi Function Reference

test_security_http_bearer_incorrect_scheme_credentials() — fastapi Function Reference

Architecture documentation for the test_security_http_bearer_incorrect_scheme_credentials() function in test_security_http_bearer.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  4b6e7a1c_917a_74c2_87d3_fc2b5bb455bf["test_security_http_bearer_incorrect_scheme_credentials()"]
  8ba56804_f1f3_7760_a5fa_5544e9399491["test_security_http_bearer.py"]
  4b6e7a1c_917a_74c2_87d3_fc2b5bb455bf -->|defined in| 8ba56804_f1f3_7760_a5fa_5544e9399491
  style 4b6e7a1c_917a_74c2_87d3_fc2b5bb455bf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_security_http_bearer.py lines 32–36

def test_security_http_bearer_incorrect_scheme_credentials():
    response = client.get("/users/me", headers={"Authorization": "Basic notreally"})
    assert response.status_code == 401, response.text
    assert response.json() == {"detail": "Not authenticated"}
    assert response.headers["WWW-Authenticate"] == "Bearer"

Domain

Subdomains

Frequently Asked Questions

What does test_security_http_bearer_incorrect_scheme_credentials() do?
test_security_http_bearer_incorrect_scheme_credentials() is a function in the fastapi codebase, defined in tests/test_security_http_bearer.py.
Where is test_security_http_bearer_incorrect_scheme_credentials() defined?
test_security_http_bearer_incorrect_scheme_credentials() is defined in tests/test_security_http_bearer.py at line 32.

Analyze Your Own Codebase

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

Try Supermodel Free