- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_security_http_basic_no_credentials (0.2 sec)
-
tests/test_tutorial/test_security/test_tutorial006_an_py39.py
assert response.status_code == 200, response.text assert response.json() == {"username": "john", "password": "secret"} @needs_py39 def test_security_http_basic_no_credentials(client: TestClient): response = client.get("/users/me") assert response.json() == {"detail": "Not authenticated"} assert response.status_code == 401, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2.5K bytes - Viewed (0)