- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for test_token_inactive_user (0.1 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_tutorial/test_security/test_tutorial004.py
) assert response.status_code == 401, response.text assert response.json() == {"detail": "Could not validate credentials"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_token_inactive_user(mod: ModuleType): client = TestClient(mod.app) alice_user_data = { "username": "alice", "full_name": "Alice Wonderson", "email": "******@****.***",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 13.3K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial005.py
assert response.status_code == 401, response.text assert response.json() == {"detail": "Could not validate credentials"} assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' def test_token_inactive_user(mod: ModuleType): client = TestClient(mod.app) access_token = get_access_token( username="alice", password="secretalice", scope="me", client=client ) response = client.get(Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 15.8K bytes - Click Count (0)