diff --git a/scripts/test_walking_path_and_presets.py b/scripts/test_walking_path_and_presets.py index 004e000..44be15e 100644 --- a/scripts/test_walking_path_and_presets.py +++ b/scripts/test_walking_path_and_presets.py @@ -70,6 +70,10 @@ def run_tests(): print("--- 4. Testing 1-Tap Shelf Reassignment & Learned Memory ---") clear_shopping_list() + # Ensure fresh test state by clearing mapping for test ingredient using execute_query + from app.database import execute_query + execute_query("DELETE FROM ingredient_category_mappings WHERE LOWER(ingredient_name) = LOWER(?)", ('frische petersilie',), commit=True) + item = add_shopping_item("Frische Petersilie", "1", "Bund") assert item["category"] == "Obst & Gemüse"