mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
chore: bump aiofiles, dotenv, fastapi, pydantic, uvicorn (#1944)
* update aiofiles and dotenv * bump fastapi and pydantic * update testclient * bump ruff and uvicorn
This commit is contained in:
parent
28cdd485f3
commit
d9c39cc1d0
10 changed files with 345 additions and 188 deletions
|
@ -89,9 +89,7 @@ def test_recipe_share_tokens_create_and_get_one(
|
|||
response = api_client.post(api_routes.shared_recipes, json=payload, headers=unique_user.token)
|
||||
assert response.status_code == 201
|
||||
|
||||
response = api_client.get(
|
||||
api_routes.shared_recipes_item_id(response.json()["id"]), json=payload, headers=unique_user.token
|
||||
)
|
||||
response = api_client.get(api_routes.shared_recipes_item_id(response.json()["id"]), headers=unique_user.token)
|
||||
assert response.status_code == 200
|
||||
|
||||
response_data = response.json()
|
||||
|
|
|
@ -267,7 +267,6 @@ def test_recipe_slug_mismatch(api_client: TestClient, unique_user: TestUser, rec
|
|||
# try to perform operations on the event using the wrong recipe
|
||||
event_response = api_client.get(
|
||||
api_routes.recipes_slug_timeline_events_item_id(invalid_recipe.slug, event.id),
|
||||
json=new_event_data,
|
||||
headers=unique_user.token,
|
||||
)
|
||||
assert event_response.status_code == 404
|
||||
|
@ -281,7 +280,6 @@ def test_recipe_slug_mismatch(api_client: TestClient, unique_user: TestUser, rec
|
|||
|
||||
event_response = api_client.delete(
|
||||
api_routes.recipes_slug_timeline_events_item_id(invalid_recipe.slug, event.id),
|
||||
json=new_event_data,
|
||||
headers=unique_user.token,
|
||||
)
|
||||
assert event_response.status_code == 404
|
||||
|
@ -289,7 +287,6 @@ def test_recipe_slug_mismatch(api_client: TestClient, unique_user: TestUser, rec
|
|||
# make sure the event still exists and is unmodified
|
||||
event_response = api_client.get(
|
||||
api_routes.recipes_slug_timeline_events_item_id(recipe.slug, event.id),
|
||||
json=new_event_data,
|
||||
headers=unique_user.token,
|
||||
)
|
||||
assert event_response.status_code == 200
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue