Public Access
- 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.
1 line
7.3 KiB
JSON
1 line
7.3 KiB
JSON
{"nodes": [{"id": "backend_app_services_orchestrator_runner_py", "label": "runner.py", "file_type": "code", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L1"}, {"id": "runner_current_week_start", "label": "_current_week_start()", "file_type": "code", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L20"}, {"id": "runner_get_or_create_run", "label": "_get_or_create_run()", "file_type": "code", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L27"}, {"id": "runner_run_step", "label": "run_step()", "file_type": "code", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L50"}, {"id": "runner_run_week", "label": "run_week()", "file_type": "code", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L84"}, {"id": "runner_rationale_1", "label": "Orchestrator runner. run_step(step_name, week_start_date) \u2014 execute one step f", "file_type": "rationale", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L1"}, {"id": "runner_rationale_21", "label": "Return the most recent Friday (today if today is Friday).", "file_type": "rationale", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L21"}], "edges": [{"source": "backend_app_services_orchestrator_runner_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_app_services_orchestrator_runner_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_app_services_orchestrator_runner_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_app_services_orchestrator_runner_py", "target": "app_database", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L13", "weight": 1.0}, {"source": "backend_app_services_orchestrator_runner_py", "target": "runner_current_week_start", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L20", "weight": 1.0}, {"source": "backend_app_services_orchestrator_runner_py", "target": "runner_get_or_create_run", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L27", "weight": 1.0}, {"source": "backend_app_services_orchestrator_runner_py", "target": "runner_run_step", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L50", "weight": 1.0}, {"source": "backend_app_services_orchestrator_runner_py", "target": "runner_run_week", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L84", "weight": 1.0}, {"source": "runner_run_step", "target": "runner_current_week_start", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L65", "weight": 1.0}, {"source": "runner_run_step", "target": "runner_get_or_create_run", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L73", "weight": 1.0}, {"source": "runner_run_week", "target": "runner_current_week_start", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L85", "weight": 1.0}, {"source": "runner_run_week", "target": "runner_run_step", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L87", "weight": 1.0}, {"source": "runner_rationale_1", "target": "backend_app_services_orchestrator_runner_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L1", "weight": 1.0}, {"source": "runner_rationale_21", "target": "runner_current_week_start", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L21", "weight": 1.0}], "raw_calls": [{"caller_nid": "runner_current_week_start", "callee": "today", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L22"}, {"caller_nid": "runner_current_week_start", "callee": "weekday", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L23"}, {"caller_nid": "runner_current_week_start", "callee": "timedelta", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L24"}, {"caller_nid": "runner_get_or_create_run", "callee": "first", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L31"}, {"caller_nid": "runner_get_or_create_run", "callee": "filter", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L31"}, {"caller_nid": "runner_get_or_create_run", "callee": "query", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L31"}, {"caller_nid": "runner_get_or_create_run", "callee": "WeeklyRun", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L39"}, {"caller_nid": "runner_get_or_create_run", "callee": "add", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L44"}, {"caller_nid": "runner_get_or_create_run", "callee": "flush", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L45"}, {"caller_nid": "runner_get_or_create_run", "callee": "refresh", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L46"}, {"caller_nid": "runner_run_step", "callee": "ValueError", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L63"}, {"caller_nid": "runner_run_step", "callee": "list", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L63"}, {"caller_nid": "runner_run_step", "callee": "SessionLocal", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L66"}, {"caller_nid": "runner_run_step", "callee": "all", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L68"}, {"caller_nid": "runner_run_step", "callee": "query", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L68"}, {"caller_nid": "runner_run_step", "callee": "warning", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L70"}, {"caller_nid": "runner_run_step", "callee": "step_fns[step_name]", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L75"}, {"caller_nid": "runner_run_step", "callee": "exception", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L77"}, {"caller_nid": "runner_run_step", "callee": "close", "source_file": "backend/app/services/orchestrator/runner.py", "source_location": "L81"}]} |