- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for fakecurrentuser (0.07 sec)
-
docs_src/bigger_applications/app_an_py39/routers/users.py
@router.get("/users/", tags=["users"]) async def read_users(): return [{"username": "Rick"}, {"username": "Morty"}] @router.get("/users/me", tags=["users"]) async def read_user_me(): return {"username": "fakecurrentuser"} @router.get("/users/{username}", tags=["users"]) async def read_user(username: str):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 407 bytes - Viewed (0) -
docs_src/bigger_applications/app_an/routers/users.py
@router.get("/users/", tags=["users"]) async def read_users(): return [{"username": "Rick"}, {"username": "Morty"}] @router.get("/users/me", tags=["users"]) async def read_user_me(): return {"username": "fakecurrentuser"} @router.get("/users/{username}", tags=["users"]) async def read_user(username: str):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 407 bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an_py39.py
) @needs_py39 def test_users_me_token_jessica(client: TestClient): response = client.get("/users/me?token=jessica") assert response.status_code == 200 assert response.json() == {"username": "fakecurrentuser"} @needs_py39 def test_users_me_with_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 422 assert response.json() == IsDict( {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.9K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
} ) def test_users_me_token_jessica(client: TestClient): response = client.get("/users/me?token=jessica") assert response.status_code == 200 assert response.json() == {"username": "fakecurrentuser"} def test_users_me_with_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 422 assert response.json() == IsDict( { "detail": [
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.6K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an.py
} ) def test_users_me_token_jessica(client: TestClient): response = client.get("/users/me?token=jessica") assert response.status_code == 200 assert response.json() == {"username": "fakecurrentuser"} def test_users_me_with_no_token(client: TestClient): response = client.get("/users/me") assert response.status_code == 422 assert response.json() == IsDict( { "detail": [
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.6K bytes - Viewed (0)