Lebensmittel oder Rezept wählbar; gemappte Zutaten werden übernommen, offene erscheinen in der Liste. Dazu Fettgehalt-Suche, EPA-Stoffe, Rezept-CRUD und Wechsel bestehender Zuordnungen. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
295 B
Python
11 lines
295 B
Python
from data_layer.food_recipes import save_recipe
|
|
|
|
|
|
def test_save_recipe_requires_name():
|
|
try:
|
|
save_recipe(None, "p", {"name_raw": " ", "ingredients": []})
|
|
except ValueError as e:
|
|
assert "Rezeptname" in str(e)
|
|
else:
|
|
raise AssertionError("expected ValueError")
|