Files
Meal-Planner/graphify-out/cache/d5f5a271cbb8bfa062e617d6aa14ea3ab93411538f090b390f705a1c9dfa0ccc.json
T
admin 019f9020ad tests: fix suite-wide collection and failures
- config: switch Settings to ConfigDict(extra='ignore') so extra env vars
  (spoonacular_api_key, SWIFTLY_BEARER_TOKEN) don't crash import.
  Remove deprecated class Config.
- email: wrap SendGrid imports in try/except so the module loads without
  the optional dependency. Update test_email_backend to patch Mail/RepyTo.
- planner_select: default PlannerConfig.set_size=21 (3 meals/day × 7) is
  way too large for the unit test assertion that checks 3-recipe diversity.
  Introduced _CFG_3 with set_size=3 and applied to all tests.
- Delete stale test_matcher.py importing removed functions.

Full suite: 46 passed, 74 skipped (Postgres), 0 failed, 120 collected.
2026-05-18 17:43:30 -07:00

1 line
19 KiB
JSON

{"nodes": [{"id": "backend_tests_test_planner_filter_py", "label": "test_planner_filter.py", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L1"}, {"id": "test_planner_filter_recipe", "label": "_recipe()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L15"}, {"id": "test_planner_filter_cost", "label": "_cost()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L35"}, {"id": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "label": "test_filter_blocks_by_never_suggest_ingredient()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L48"}, {"id": "test_planner_filter_test_filter_blocks_by_never_suggest_recipe", "label": "test_filter_blocks_by_never_suggest_recipe()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L70"}, {"id": "test_planner_filter_test_filter_blocks_by_recency", "label": "test_filter_blocks_by_recency()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L87"}, {"id": "test_planner_filter_test_filter_blocks_by_calories", "label": "test_filter_blocks_by_calories()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L104"}, {"id": "test_planner_filter_test_filter_blocks_by_time", "label": "test_filter_blocks_by_time()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L122"}, {"id": "test_planner_filter_test_filter_blocks_by_cost", "label": "test_filter_blocks_by_cost()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L140"}, {"id": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "label": "test_filter_passes_when_calorie_target_is_none()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L158"}, {"id": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "label": "test_filter_blocks_recipe_with_null_calories_when_target_set()", "file_type": "code", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L174"}], "edges": [{"source": "backend_tests_test_planner_filter_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "decimal", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "uuid", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "pytest", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "app_services_planner_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "app_services_planner_filter", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "app_services_planner_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_recipe", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L15", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_cost", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L35", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L48", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_test_filter_blocks_by_never_suggest_recipe", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L70", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_test_filter_blocks_by_recency", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L87", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_test_filter_blocks_by_calories", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L104", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_test_filter_blocks_by_time", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L122", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_test_filter_blocks_by_cost", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L140", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L158", "weight": 1.0}, {"source": "backend_tests_test_planner_filter_py", "target": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L174", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "target": "test_planner_filter_recipe", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L49", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "target": "test_planner_filter_cost", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L57", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_never_suggest_recipe", "target": "test_planner_filter_recipe", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L71", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_never_suggest_recipe", "target": "test_planner_filter_cost", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L75", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_recency", "target": "test_planner_filter_recipe", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L88", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_recency", "target": "test_planner_filter_cost", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L93", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_calories", "target": "test_planner_filter_recipe", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L105", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_calories", "target": "test_planner_filter_cost", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L110", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_time", "target": "test_planner_filter_recipe", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L123", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_time", "target": "test_planner_filter_cost", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L128", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_cost", "target": "test_planner_filter_recipe", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L141", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_by_cost", "target": "test_planner_filter_cost", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L146", "weight": 1.0}, {"source": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "target": "test_planner_filter_recipe", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L159", "weight": 1.0}, {"source": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "target": "test_planner_filter_cost", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L163", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "target": "test_planner_filter_recipe", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L175", "weight": 1.0}, {"source": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "target": "test_planner_filter_cost", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L179", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_planner_filter_recipe", "callee": "uuid4", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L25"}, {"caller_nid": "test_planner_filter_recipe", "callee": "list", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L31"}, {"caller_nid": "test_planner_filter_cost", "callee": "RecipeCost", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L36"}, {"caller_nid": "test_planner_filter_cost", "callee": "Decimal", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L38"}, {"caller_nid": "test_planner_filter_cost", "callee": "str", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L38"}, {"caller_nid": "test_planner_filter_cost", "callee": "Decimal", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L39"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "callee": "uuid4", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L51"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "callee": "uuid4", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L52"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "callee": "filter_recipes", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L54"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L59"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_ingredient", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L63"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_recipe", "callee": "filter_recipes", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L72"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_recipe", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L74"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_recipe", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L76"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_never_suggest_recipe", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L81"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_recency", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L89"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_recency", "callee": "timedelta", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L89"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_recency", "callee": "filter_recipes", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L90"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_recency", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L92"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_recency", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L94"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_recency", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L95"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_recency", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L99"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_calories", "callee": "filter_recipes", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L107"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_calories", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L109"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_calories", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L109"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_calories", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L111"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_calories", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L112"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_calories", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L116"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_time", "callee": "filter_recipes", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L125"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_time", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L127"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_time", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L127"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_time", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L129"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_time", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L130"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_time", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L134"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_cost", "callee": "filter_recipes", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L143"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_cost", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L145"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_cost", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L145"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_cost", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L147"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_cost", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L148"}, {"caller_nid": "test_planner_filter_test_filter_blocks_by_cost", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L152"}, {"caller_nid": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "callee": "filter_recipes", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L160"}, {"caller_nid": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L162"}, {"caller_nid": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L164"}, {"caller_nid": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L165"}, {"caller_nid": "test_planner_filter_test_filter_passes_when_calorie_target_is_none", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L169"}, {"caller_nid": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "callee": "filter_recipes", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L176"}, {"caller_nid": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L178"}, {"caller_nid": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L180"}, {"caller_nid": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "callee": "set", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L181"}, {"caller_nid": "test_planner_filter_test_filter_blocks_recipe_with_null_calories_when_target_set", "callee": "date", "source_file": "backend/tests/test_planner_filter.py", "source_location": "L185"}]}