- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for test_strict_login_no_data (0.16 seconds)
-
tests/test_security_oauth2.py
assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_strict_login_no_data(): response = client.post("/login") assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "missing",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 9K bytes - Click Count (0) -
tests/test_security_oauth2_optional.py
response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"msg": "Create an account first"} def test_strict_login_no_data(): response = client.post("/login") assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "missing",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8.9K bytes - Click Count (0)