Files
Meal-Planner/graphify-out/cache/8fef70084796c9eee20d9e399f8baeed28fe270670a7a14c9cb8921761170b83.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
7.5 KiB
JSON

{"nodes": [{"id": "scripts_send_test_approval_py", "label": "send_test_approval.py", "file_type": "code", "source_file": "scripts/send_test_approval.py", "source_location": "L1"}, {"id": "send_test_approval_main", "label": "main()", "file_type": "code", "source_file": "scripts/send_test_approval.py", "source_location": "L44"}], "edges": [{"source": "scripts_send_test_approval_py", "target": "argparse", "relation": "imports", "confidence": "EXTRACTED", "source_file": "scripts/send_test_approval.py", "source_location": "L21", "weight": 1.0}, {"source": "scripts_send_test_approval_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "scripts/send_test_approval.py", "source_location": "L22", "weight": 1.0}, {"source": "scripts_send_test_approval_py", "target": "sys", "relation": "imports", "confidence": "EXTRACTED", "source_file": "scripts/send_test_approval.py", "source_location": "L23", "weight": 1.0}, {"source": "scripts_send_test_approval_py", "target": "uuid", "relation": "imports", "confidence": "EXTRACTED", "source_file": "scripts/send_test_approval.py", "source_location": "L24", "weight": 1.0}, {"source": "scripts_send_test_approval_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "scripts/send_test_approval.py", "source_location": "L25", "weight": 1.0}, {"source": "scripts_send_test_approval_py", "target": "pathlib", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "scripts/send_test_approval.py", "source_location": "L26", "weight": 1.0}, {"source": "scripts_send_test_approval_py", "target": "send_test_approval_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "scripts/send_test_approval.py", "source_location": "L44", "weight": 1.0}], "raw_calls": [{"caller_nid": "send_test_approval_main", "callee": "ArgumentParser", "source_file": "scripts/send_test_approval.py", "source_location": "L45"}, {"caller_nid": "send_test_approval_main", "callee": "add_argument", "source_file": "scripts/send_test_approval.py", "source_location": "L46"}, {"caller_nid": "send_test_approval_main", "callee": "add_argument", "source_file": "scripts/send_test_approval.py", "source_location": "L51"}, {"caller_nid": "send_test_approval_main", "callee": "parse_args", "source_file": "scripts/send_test_approval.py", "source_location": "L56"}, {"caller_nid": "send_test_approval_main", "callee": "create_engine", "source_file": "scripts/send_test_approval.py", "source_location": "L75"}, {"caller_nid": "send_test_approval_main", "callee": "replace", "source_file": "scripts/send_test_approval.py", "source_location": "L76"}, {"caller_nid": "send_test_approval_main", "callee": "sessionmaker", "source_file": "scripts/send_test_approval.py", "source_location": "L78"}, {"caller_nid": "send_test_approval_main", "callee": "Session", "source_file": "scripts/send_test_approval.py", "source_location": "L79"}, {"caller_nid": "send_test_approval_main", "callee": "uuid4", "source_file": "scripts/send_test_approval.py", "source_location": "L86"}, {"caller_nid": "send_test_approval_main", "callee": "FamilyProfile", "source_file": "scripts/send_test_approval.py", "source_location": "L88"}, {"caller_nid": "send_test_approval_main", "callee": "add", "source_file": "scripts/send_test_approval.py", "source_location": "L94"}, {"caller_nid": "send_test_approval_main", "callee": "flush", "source_file": "scripts/send_test_approval.py", "source_location": "L95"}, {"caller_nid": "send_test_approval_main", "callee": "FamilyMember", "source_file": "scripts/send_test_approval.py", "source_location": "L97"}, {"caller_nid": "send_test_approval_main", "callee": "add", "source_file": "scripts/send_test_approval.py", "source_location": "L103"}, {"caller_nid": "send_test_approval_main", "callee": "flush", "source_file": "scripts/send_test_approval.py", "source_location": "L104"}, {"caller_nid": "send_test_approval_main", "callee": "Recipe", "source_file": "scripts/send_test_approval.py", "source_location": "L106"}, {"caller_nid": "send_test_approval_main", "callee": "add", "source_file": "scripts/send_test_approval.py", "source_location": "L114"}, {"caller_nid": "send_test_approval_main", "callee": "flush", "source_file": "scripts/send_test_approval.py", "source_location": "L115"}, {"caller_nid": "send_test_approval_main", "callee": "MealPlan", "source_file": "scripts/send_test_approval.py", "source_location": "L117"}, {"caller_nid": "send_test_approval_main", "callee": "today", "source_file": "scripts/send_test_approval.py", "source_location": "L119"}, {"caller_nid": "send_test_approval_main", "callee": "timedelta", "source_file": "scripts/send_test_approval.py", "source_location": "L119"}, {"caller_nid": "send_test_approval_main", "callee": "weekday", "source_file": "scripts/send_test_approval.py", "source_location": "L119"}, {"caller_nid": "send_test_approval_main", "callee": "today", "source_file": "scripts/send_test_approval.py", "source_location": "L119"}, {"caller_nid": "send_test_approval_main", "callee": "add", "source_file": "scripts/send_test_approval.py", "source_location": "L122"}, {"caller_nid": "send_test_approval_main", "callee": "flush", "source_file": "scripts/send_test_approval.py", "source_location": "L123"}, {"caller_nid": "send_test_approval_main", "callee": "MealPlanItem", "source_file": "scripts/send_test_approval.py", "source_location": "L125"}, {"caller_nid": "send_test_approval_main", "callee": "add", "source_file": "scripts/send_test_approval.py", "source_location": "L131"}, {"caller_nid": "send_test_approval_main", "callee": "commit", "source_file": "scripts/send_test_approval.py", "source_location": "L132"}, {"caller_nid": "send_test_approval_main", "callee": "issue_token", "source_file": "scripts/send_test_approval.py", "source_location": "L134"}, {"caller_nid": "send_test_approval_main", "callee": "get_email_backend", "source_file": "scripts/send_test_approval.py", "source_location": "L138"}, {"caller_nid": "send_test_approval_main", "callee": "send", "source_file": "scripts/send_test_approval.py", "source_location": "L146"}, {"caller_nid": "send_test_approval_main", "callee": "print", "source_file": "scripts/send_test_approval.py", "source_location": "L148"}, {"caller_nid": "send_test_approval_main", "callee": "print", "source_file": "scripts/send_test_approval.py", "source_location": "L149"}, {"caller_nid": "send_test_approval_main", "callee": "print", "source_file": "scripts/send_test_approval.py", "source_location": "L150"}, {"caller_nid": "send_test_approval_main", "callee": "TestClient", "source_file": "scripts/send_test_approval.py", "source_location": "L162"}, {"caller_nid": "send_test_approval_main", "callee": "get", "source_file": "scripts/send_test_approval.py", "source_location": "L164"}, {"caller_nid": "send_test_approval_main", "callee": "get", "source_file": "scripts/send_test_approval.py", "source_location": "L166"}, {"caller_nid": "send_test_approval_main", "callee": "post", "source_file": "scripts/send_test_approval.py", "source_location": "L168"}, {"caller_nid": "send_test_approval_main", "callee": "json", "source_file": "scripts/send_test_approval.py", "source_location": "L174"}, {"caller_nid": "send_test_approval_main", "callee": "print", "source_file": "scripts/send_test_approval.py", "source_location": "L175"}, {"caller_nid": "send_test_approval_main", "callee": "post", "source_file": "scripts/send_test_approval.py", "source_location": "L179"}, {"caller_nid": "send_test_approval_main", "callee": "print", "source_file": "scripts/send_test_approval.py", "source_location": "L185"}]}