Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_read_with_oauth2_scheme (0.09 sec)

  1. tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py

    def test_root():
        response = client.get("/", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "Hello World"}
    
    
    def test_read_with_oauth2_scheme():
        response = client.get(
            "/with-oauth2-scheme", headers={"Authorization": "Bearer testtoken"}
        )
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top