mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
feat: add the selected recipe servings and yields in the content of the recipe post action (#5340)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
parent
ac984a2d04
commit
78b55c0b98
5 changed files with 12 additions and 6 deletions
|
@ -173,6 +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},
|
||||
)
|
||||
|
||||
if missing_action or missing_recipe:
|
||||
|
@ -189,6 +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},
|
||||
)
|
||||
|
||||
assert response.status_code == 400
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue