- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_security_http_bearer_incorrect_scheme_credentials (0.5 sec)
-
tests/test_security_http_bearer_description.py
response = client.get("/users/me") assert response.status_code == 403, response.text assert response.json() == {"detail": "Not authenticated"} def test_security_http_bearer_incorrect_scheme_credentials(): response = client.get("/users/me", headers={"Authorization": "Basic notreally"}) assert response.status_code == 403, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2.2K bytes - Viewed (0)