- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for test_token_inactive_user (0.12 sec)
-
tests/test_tutorial/test_security/test_tutorial005_an_py39.py
assert response.json() == {"detail": "Could not validate credentials"} assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' @needs_py39 def test_token_inactive_user(client: TestClient): access_token = get_access_token( username="alice", password="secretalice", scope="me", client=client ) response = client.get(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (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(): access_token = get_access_token( username="alice", password="secretalice", scope="me" ) response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 15.4K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an_py310.py
assert response.json() == {"detail": "Could not validate credentials"} assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' @needs_py310 def test_token_inactive_user(client: TestClient): access_token = get_access_token( username="alice", password="secretalice", scope="me", client=client ) response = client.get(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an.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(): access_token = get_access_token( username="alice", password="secretalice", scope="me" ) response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 15.4K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py310.py
assert response.json() == {"detail": "Could not validate credentials"} assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' @needs_py310 def test_token_inactive_user(client: TestClient): access_token = get_access_token( username="alice", password="secretalice", scope="me", client=client ) response = client.get(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py39.py
assert response.json() == {"detail": "Could not validate credentials"} assert response.headers["WWW-Authenticate"] == 'Bearer scope="me"' @needs_py39 def test_token_inactive_user(client: TestClient): access_token = get_access_token( username="alice", password="secretalice", scope="me", client=client ) response = client.get(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Mar 13 19:07:10 UTC 2024 - 16.3K bytes - Viewed (0)