1
0
Fork 0
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:
Hayden 2022-12-30 12:44:54 -08:00 committed by GitHub
parent 28cdd485f3
commit d9c39cc1d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 345 additions and 188 deletions

View file

@ -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()

View file

@ -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