mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
Have a more debuggable output
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
This commit is contained in:
parent
1778790947
commit
1834f3e304
2 changed files with 2 additions and 1 deletions
|
@ -388,7 +388,7 @@ class RecipeService(RecipeServiceBase):
|
|||
if strict:
|
||||
for field in new_data.__class__.model_fields:
|
||||
if getattr(new_data, field) is None:
|
||||
raise exceptions.IncompleteData("Incomplete recipe")
|
||||
raise exceptions.IncompleteData(f"Incomplete recipe, missing {field}")
|
||||
|
||||
if recipe is None or recipe.settings is None:
|
||||
raise exceptions.NoEntryFound("Recipe not found.")
|
||||
|
|
|
@ -109,6 +109,7 @@ def test_organizer_update(
|
|||
item[key] = update_data[key]
|
||||
|
||||
response = api_client.put(route.item(item_id), json=item, headers=unique_user.token)
|
||||
print(response)
|
||||
assert response.status_code == 200
|
||||
|
||||
response = api_client.get(route.item(item_id), headers=unique_user.token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue