1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-09 15:35:24 +02:00

fix: send the correct value for recipe scale and ensure the body is sent correctly (#5737)

This commit is contained in:
Felix Schneider 2025-07-25 13:42:17 +02:00 committed by GitHub
parent 5c7a4fb861
commit 99523c70ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 9 deletions

View file

@ -173,7 +173,7 @@ def test_group_recipe_actions_trigger_post(
response = api_client.post(
api_routes.households_recipe_actions_item_id_trigger_recipe_slug(action_id, recipe_slug),
headers=unique_user.token,
json={"scaled_amount": 1.0},
json={"recipe_scale": 1.0},
)
if missing_action or missing_recipe:
@ -190,7 +190,7 @@ def test_group_recipe_actions_trigger_invalid_type(api_client: TestClient, uniqu
response = api_client.post(
api_routes.households_recipe_actions_item_id_trigger_recipe_slug(recipe_action.id, recipe.id),
headers=unique_user.token,
json={"scaled_amount": 1.0},
json={"recipe_scale": 1.0},
)
assert response.status_code == 400