feat: Rezepte beim Zuordnen anlegen und offene Zutaten listen
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>
This commit is contained in:
1 parent
132a364a3a
commit
a7e5511039
26 files changed
+1234
-147
No files matched your search
@@ -0,0 +1,10 @@
|
||||
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")
|
||||
Reference in new issue
Block a user