Files
Meal-Planner/graphify-out/cache/07f69a362a2970b4ceac515265a92829233c4a0b451df754854fc43ec8968ac9.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.3 KiB
JSON

{"nodes": [{"id": "backend_tests_test_scrape_endpoint_py", "label": "test_scrape_endpoint.py", "file_type": "code", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L1"}, {"id": "test_scrape_endpoint_admin_token", "label": "_admin_token()", "file_type": "code", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L20"}, {"id": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "label": "test_scrape_returns_202_and_log_id()", "file_type": "code", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L26"}, {"id": "test_scrape_endpoint_rationale_1", "label": "Async scrape endpoint contract. Verifies that ``POST /api/admin/scrape``: - r", "file_type": "rationale", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L1"}, {"id": "test_scrape_endpoint_rationale_27", "label": "Endpoint enqueues the scrape and returns 202 + scrape_log_id. We replace th", "file_type": "rationale", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L27"}], "edges": [{"source": "backend_tests_test_scrape_endpoint_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_tests_test_scrape_endpoint_py", "target": "uuid", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_tests_test_scrape_endpoint_py", "target": "pytest", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_tests_test_scrape_endpoint_py", "target": "test_scrape_endpoint_admin_token", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L20", "weight": 1.0}, {"source": "backend_tests_test_scrape_endpoint_py", "target": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L26", "weight": 1.0}, {"source": "test_scrape_endpoint_rationale_1", "target": "backend_tests_test_scrape_endpoint_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L1", "weight": 1.0}, {"source": "test_scrape_endpoint_rationale_27", "target": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L27", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_scrape_endpoint_admin_token", "callee": "setenv", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L21"}, {"caller_nid": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "callee": "setattr", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L40"}, {"caller_nid": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "callee": "post", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L44"}, {"caller_nid": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "callee": "json", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L49"}, {"caller_nid": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "callee": "UUID", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L53"}, {"caller_nid": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "callee": "first", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L58"}, {"caller_nid": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "callee": "filter", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L58"}, {"caller_nid": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "callee": "query", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L58"}, {"caller_nid": "test_scrape_endpoint_test_scrape_returns_202_and_log_id", "callee": "len", "source_file": "backend/tests/test_scrape_endpoint.py", "source_location": "L67"}]}