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

{"nodes": [{"id": "backend_tests_test_match_hook_py", "label": "test_match_hook.py", "file_type": "code", "source_file": "backend/tests/test_match_hook.py", "source_location": "L1"}, {"id": "test_match_hook_test_run_match_job_persists_top_matches", "label": "test_run_match_job_persists_top_matches()", "file_type": "code", "source_file": "backend/tests/test_match_hook.py", "source_location": "L6"}, {"id": "test_match_hook_rationale_7", "label": "End-to-end: seed Ingredient + GroceryItem rows, run the matcher, verify ingr", "file_type": "rationale", "source_file": "backend/tests/test_match_hook.py", "source_location": "L7"}], "edges": [{"source": "backend_tests_test_match_hook_py", "target": "pytest", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_match_hook.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_tests_test_match_hook_py", "target": "test_match_hook_test_run_match_job_persists_top_matches", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_match_hook.py", "source_location": "L6", "weight": 1.0}, {"source": "test_match_hook_rationale_7", "target": "test_match_hook_test_run_match_job_persists_top_matches", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_match_hook.py", "source_location": "L7", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "SessionLocal", "source_file": "backend/tests/test_match_hook.py", "source_location": "L23"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "uuid4", "source_file": "backend/tests/test_match_hook.py", "source_location": "L24"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "uuid4", "source_file": "backend/tests/test_match_hook.py", "source_location": "L25"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "add", "source_file": "backend/tests/test_match_hook.py", "source_location": "L27"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "Ingredient", "source_file": "backend/tests/test_match_hook.py", "source_location": "L28"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "add", "source_file": "backend/tests/test_match_hook.py", "source_location": "L37"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "GroceryItem", "source_file": "backend/tests/test_match_hook.py", "source_location": "L38"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "Decimal", "source_file": "backend/tests/test_match_hook.py", "source_location": "L43"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "Decimal", "source_file": "backend/tests/test_match_hook.py", "source_location": "L44"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "now", "source_file": "backend/tests/test_match_hook.py", "source_location": "L46"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "commit", "source_file": "backend/tests/test_match_hook.py", "source_location": "L49"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "close", "source_file": "backend/tests/test_match_hook.py", "source_location": "L51"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "SessionLocal", "source_file": "backend/tests/test_match_hook.py", "source_location": "L53"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "run_match_job", "source_file": "backend/tests/test_match_hook.py", "source_location": "L55"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "all", "source_file": "backend/tests/test_match_hook.py", "source_location": "L58"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "filter", "source_file": "backend/tests/test_match_hook.py", "source_location": "L58"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "query", "source_file": "backend/tests/test_match_hook.py", "source_location": "L58"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "any", "source_file": "backend/tests/test_match_hook.py", "source_location": "L62"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "Decimal", "source_file": "backend/tests/test_match_hook.py", "source_location": "L64"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "SessionLocal", "source_file": "backend/tests/test_match_hook.py", "source_location": "L69"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "delete", "source_file": "backend/tests/test_match_hook.py", "source_location": "L71"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "filter", "source_file": "backend/tests/test_match_hook.py", "source_location": "L71"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "query", "source_file": "backend/tests/test_match_hook.py", "source_location": "L71"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "delete", "source_file": "backend/tests/test_match_hook.py", "source_location": "L74"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "filter", "source_file": "backend/tests/test_match_hook.py", "source_location": "L74"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "query", "source_file": "backend/tests/test_match_hook.py", "source_location": "L74"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "delete", "source_file": "backend/tests/test_match_hook.py", "source_location": "L75"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "filter", "source_file": "backend/tests/test_match_hook.py", "source_location": "L75"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "query", "source_file": "backend/tests/test_match_hook.py", "source_location": "L75"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "commit", "source_file": "backend/tests/test_match_hook.py", "source_location": "L76"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "close", "source_file": "backend/tests/test_match_hook.py", "source_location": "L78"}, {"caller_nid": "test_match_hook_test_run_match_job_persists_top_matches", "callee": "close", "source_file": "backend/tests/test_match_hook.py", "source_location": "L79"}]}