Have a more debuggable output

Signed-off-by: Litchi Pi <litchi.pi@proton.me>
This commit is contained in:
Litchi Pi 2025-07-23 14:29:28 +02:00
commit 1834f3e304
2 changed files with 2 additions and 1 deletions

View file

@ -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.")

View file

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