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

{"nodes": [{"id": "backend_app_api_meal_plans_py", "label": "meal_plans.py", "file_type": "code", "source_file": "backend/app/api/meal_plans.py", "source_location": "L1"}, {"id": "meal_plans_to_response", "label": "_to_response()", "file_type": "code", "source_file": "backend/app/api/meal_plans.py", "source_location": "L33"}, {"id": "meal_plans_generate", "label": "generate()", "file_type": "code", "source_file": "backend/app/api/meal_plans.py", "source_location": "L60"}, {"id": "meal_plans_regenerate", "label": "regenerate()", "file_type": "code", "source_file": "backend/app/api/meal_plans.py", "source_location": "L82"}, {"id": "meal_plans_get_plan", "label": "get_plan()", "file_type": "code", "source_file": "backend/app/api/meal_plans.py", "source_location": "L120"}], "edges": [{"source": "backend_app_api_meal_plans_py", "target": "dataclasses", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "uuid", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "app_database", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "app_models", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "app_schemas_meal_plan_generation", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "app_security", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L19", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "app_services_planner_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L20", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "app_services_planner_generate", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L21", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "app_services_planner_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L22", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "meal_plans_to_response", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L33", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "meal_plans_generate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L60", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "meal_plans_regenerate", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L82", "weight": 1.0}, {"source": "backend_app_api_meal_plans_py", "target": "meal_plans_get_plan", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L120", "weight": 1.0}, {"source": "meal_plans_generate", "target": "meal_plans_to_response", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L78", "weight": 1.0}, {"source": "meal_plans_regenerate", "target": "meal_plans_to_response", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/app/api/meal_plans.py", "source_location": "L116", "weight": 1.0}], "raw_calls": [{"caller_nid": "meal_plans_to_response", "callee": "get", "source_file": "backend/app/api/meal_plans.py", "source_location": "L37"}, {"caller_nid": "meal_plans_to_response", "callee": "append", "source_file": "backend/app/api/meal_plans.py", "source_location": "L38"}, {"caller_nid": "meal_plans_to_response", "callee": "GenerationItem", "source_file": "backend/app/api/meal_plans.py", "source_location": "L39"}, {"caller_nid": "meal_plans_to_response", "callee": "float", "source_file": "backend/app/api/meal_plans.py", "source_location": "L44"}, {"caller_nid": "meal_plans_to_response", "callee": "items", "source_file": "backend/app/api/meal_plans.py", "source_location": "L44"}, {"caller_nid": "meal_plans_to_response", "callee": "GenerationResponse", "source_file": "backend/app/api/meal_plans.py", "source_location": "L47"}, {"caller_nid": "meal_plans_to_response", "callee": "GenerationDebug", "source_file": "backend/app/api/meal_plans.py", "source_location": "L51"}, {"caller_nid": "meal_plans_generate", "callee": "first", "source_file": "backend/app/api/meal_plans.py", "source_location": "L61"}, {"caller_nid": "meal_plans_generate", "callee": "filter", "source_file": "backend/app/api/meal_plans.py", "source_location": "L61"}, {"caller_nid": "meal_plans_generate", "callee": "query", "source_file": "backend/app/api/meal_plans.py", "source_location": "L61"}, {"caller_nid": "meal_plans_generate", "callee": "HTTPException", "source_file": "backend/app/api/meal_plans.py", "source_location": "L63"}, {"caller_nid": "meal_plans_generate", "callee": "generate_meal_plan", "source_file": "backend/app/api/meal_plans.py", "source_location": "L65"}, {"caller_nid": "meal_plans_generate", "callee": "HTTPException", "source_file": "backend/app/api/meal_plans.py", "source_location": "L71"}, {"caller_nid": "meal_plans_generate", "callee": "str", "source_file": "backend/app/api/meal_plans.py", "source_location": "L71"}, {"caller_nid": "meal_plans_generate", "callee": "all", "source_file": "backend/app/api/meal_plans.py", "source_location": "L73"}, {"caller_nid": "meal_plans_generate", "callee": "order_by", "source_file": "backend/app/api/meal_plans.py", "source_location": "L73"}, {"caller_nid": "meal_plans_generate", "callee": "filter", "source_file": "backend/app/api/meal_plans.py", "source_location": "L73"}, {"caller_nid": "meal_plans_generate", "callee": "query", "source_file": "backend/app/api/meal_plans.py", "source_location": "L73"}, {"caller_nid": "meal_plans_regenerate", "callee": "first", "source_file": "backend/app/api/meal_plans.py", "source_location": "L83"}, {"caller_nid": "meal_plans_regenerate", "callee": "filter", "source_file": "backend/app/api/meal_plans.py", "source_location": "L83"}, {"caller_nid": "meal_plans_regenerate", "callee": "query", "source_file": "backend/app/api/meal_plans.py", "source_location": "L83"}, {"caller_nid": "meal_plans_regenerate", "callee": "HTTPException", "source_file": "backend/app/api/meal_plans.py", "source_location": "L85"}, {"caller_nid": "meal_plans_regenerate", "callee": "replace", "source_file": "backend/app/api/meal_plans.py", "source_location": "L89"}, {"caller_nid": "meal_plans_regenerate", "callee": "replace", "source_file": "backend/app/api/meal_plans.py", "source_location": "L91"}, {"caller_nid": "meal_plans_regenerate", "callee": "replace", "source_file": "backend/app/api/meal_plans.py", "source_location": "L93"}, {"caller_nid": "meal_plans_regenerate", "callee": "delete", "source_file": "backend/app/api/meal_plans.py", "source_location": "L98"}, {"caller_nid": "meal_plans_regenerate", "callee": "filter", "source_file": "backend/app/api/meal_plans.py", "source_location": "L98"}, {"caller_nid": "meal_plans_regenerate", "callee": "query", "source_file": "backend/app/api/meal_plans.py", "source_location": "L98"}, {"caller_nid": "meal_plans_regenerate", "callee": "commit", "source_file": "backend/app/api/meal_plans.py", "source_location": "L102"}, {"caller_nid": "meal_plans_regenerate", "callee": "generate_meal_plan", "source_file": "backend/app/api/meal_plans.py", "source_location": "L104"}, {"caller_nid": "meal_plans_regenerate", "callee": "all", "source_file": "backend/app/api/meal_plans.py", "source_location": "L111"}, {"caller_nid": "meal_plans_regenerate", "callee": "order_by", "source_file": "backend/app/api/meal_plans.py", "source_location": "L111"}, {"caller_nid": "meal_plans_regenerate", "callee": "filter", "source_file": "backend/app/api/meal_plans.py", "source_location": "L111"}, {"caller_nid": "meal_plans_regenerate", "callee": "query", "source_file": "backend/app/api/meal_plans.py", "source_location": "L111"}, {"caller_nid": "meal_plans_get_plan", "callee": "first", "source_file": "backend/app/api/meal_plans.py", "source_location": "L121"}, {"caller_nid": "meal_plans_get_plan", "callee": "filter", "source_file": "backend/app/api/meal_plans.py", "source_location": "L121"}, {"caller_nid": "meal_plans_get_plan", "callee": "query", "source_file": "backend/app/api/meal_plans.py", "source_location": "L121"}, {"caller_nid": "meal_plans_get_plan", "callee": "HTTPException", "source_file": "backend/app/api/meal_plans.py", "source_location": "L123"}, {"caller_nid": "meal_plans_get_plan", "callee": "all", "source_file": "backend/app/api/meal_plans.py", "source_location": "L125"}, {"caller_nid": "meal_plans_get_plan", "callee": "order_by", "source_file": "backend/app/api/meal_plans.py", "source_location": "L125"}, {"caller_nid": "meal_plans_get_plan", "callee": "filter", "source_file": "backend/app/api/meal_plans.py", "source_location": "L125"}, {"caller_nid": "meal_plans_get_plan", "callee": "query", "source_file": "backend/app/api/meal_plans.py", "source_location": "L125"}, {"caller_nid": "meal_plans_get_plan", "callee": "GenerationResponse", "source_file": "backend/app/api/meal_plans.py", "source_location": "L132"}, {"caller_nid": "meal_plans_get_plan", "callee": "GenerationItem", "source_file": "backend/app/api/meal_plans.py", "source_location": "L136"}, {"caller_nid": "meal_plans_get_plan", "callee": "GenerationDebug", "source_file": "backend/app/api/meal_plans.py", "source_location": "L145"}]}