Files
Meal-Planner/graphify-out/cache/b23fd4cb9340b9b1e7c16b0017e671deb1470ded3c9245d20655b25842c48fc9.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
4.2 KiB
JSON

{"nodes": [{"id": "backend_app_services_planner_types_py", "label": "types.py", "file_type": "code", "source_file": "backend/app/services/planner/types.py", "source_location": "L1"}, {"id": "types_ingredientcost", "label": "IngredientCost", "file_type": "code", "source_file": "backend/app/services/planner/types.py", "source_location": "L11"}, {"id": "types_recipecost", "label": "RecipeCost", "file_type": "code", "source_file": "backend/app/services/planner/types.py", "source_location": "L26"}, {"id": "types_sale_coverage_pct", "label": "sale_coverage_pct()", "file_type": "code", "source_file": "backend/app/services/planner/types.py", "source_location": "L37"}, {"id": "types_pantry_hit_pct", "label": "pantry_hit_pct()", "file_type": "code", "source_file": "backend/app/services/planner/types.py", "source_location": "L43"}, {"id": "types_filterresult", "label": "FilterResult", "file_type": "code", "source_file": "backend/app/services/planner/types.py", "source_location": "L50"}, {"id": "types_scoredrecipe", "label": "ScoredRecipe", "file_type": "code", "source_file": "backend/app/services/planner/types.py", "source_location": "L56"}, {"id": "types_generationresult", "label": "GenerationResult", "file_type": "code", "source_file": "backend/app/services/planner/types.py", "source_location": "L66"}, {"id": "types_rationale_1", "label": "Shared planner data structures.", "file_type": "rationale", "source_file": "backend/app/services/planner/types.py", "source_location": "L1"}], "edges": [{"source": "backend_app_services_planner_types_py", "target": "dataclasses", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "decimal", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "uuid", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "types_ingredientcost", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "types_recipecost", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L26", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "types_sale_coverage_pct", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L37", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "types_pantry_hit_pct", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L43", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "types_filterresult", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L50", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "types_scoredrecipe", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L56", "weight": 1.0}, {"source": "backend_app_services_planner_types_py", "target": "types_generationresult", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L66", "weight": 1.0}, {"source": "types_rationale_1", "target": "backend_app_services_planner_types_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/app/services/planner/types.py", "source_location": "L1", "weight": 1.0}], "raw_calls": []}