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

{"nodes": [{"id": "backend_tests_test_auth_py", "label": "test_auth.py", "file_type": "code", "source_file": "backend/tests/test_auth.py", "source_location": "L1"}, {"id": "test_auth_reload_settings", "label": "_reload_settings()", "file_type": "code", "source_file": "backend/tests/test_auth.py", "source_location": "L25"}, {"id": "test_auth_test_admin_requires_token", "label": "test_admin_requires_token()", "file_type": "code", "source_file": "backend/tests/test_auth.py", "source_location": "L41"}, {"id": "test_auth_test_admin_logs_requires_token", "label": "test_admin_logs_requires_token()", "file_type": "code", "source_file": "backend/tests/test_auth.py", "source_location": "L55"}, {"id": "test_auth_test_session_required_for_mutation", "label": "test_session_required_for_mutation()", "file_type": "code", "source_file": "backend/tests/test_auth.py", "source_location": "L69"}, {"id": "test_auth_test_session_open_for_reads", "label": "test_session_open_for_reads()", "file_type": "code", "source_file": "backend/tests/test_auth.py", "source_location": "L79"}, {"id": "test_auth_test_session_login_logout", "label": "test_session_login_logout()", "file_type": "code", "source_file": "backend/tests/test_auth.py", "source_location": "L90"}, {"id": "test_auth_rationale_1", "label": "Auth gate tests for R1-B+D. Covers: - /api/admin/* requires bearer token (401 w", "file_type": "rationale", "source_file": "backend/tests/test_auth.py", "source_location": "L1"}, {"id": "test_auth_rationale_26", "label": "Force ``settings`` to re-read env (test isolation).", "file_type": "rationale", "source_file": "backend/tests/test_auth.py", "source_location": "L26"}, {"id": "test_auth_rationale_42", "label": "No bearer \u2192 401. Valid bearer \u2192 not 401 (handler runs).", "file_type": "rationale", "source_file": "backend/tests/test_auth.py", "source_location": "L42"}, {"id": "test_auth_rationale_70", "label": "POST /api/profile/members without cookie \u2192 401.", "file_type": "rationale", "source_file": "backend/tests/test_auth.py", "source_location": "L70"}, {"id": "test_auth_rationale_80", "label": "GET /api/profile is NOT auth-gated (reads stay open).", "file_type": "rationale", "source_file": "backend/tests/test_auth.py", "source_location": "L80"}], "edges": [{"source": "backend_tests_test_auth_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_tests_test_auth_py", "target": "pytest", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_tests_test_auth_py", "target": "test_auth_reload_settings", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L25", "weight": 1.0}, {"source": "backend_tests_test_auth_py", "target": "test_auth_test_admin_requires_token", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L41", "weight": 1.0}, {"source": "backend_tests_test_auth_py", "target": "test_auth_test_admin_logs_requires_token", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L55", "weight": 1.0}, {"source": "backend_tests_test_auth_py", "target": "test_auth_test_session_required_for_mutation", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L69", "weight": 1.0}, {"source": "backend_tests_test_auth_py", "target": "test_auth_test_session_open_for_reads", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L79", "weight": 1.0}, {"source": "backend_tests_test_auth_py", "target": "test_auth_test_session_login_logout", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L90", "weight": 1.0}, {"source": "test_auth_rationale_1", "target": "backend_tests_test_auth_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L1", "weight": 1.0}, {"source": "test_auth_rationale_26", "target": "test_auth_reload_settings", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L26", "weight": 1.0}, {"source": "test_auth_rationale_42", "target": "test_auth_test_admin_requires_token", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L42", "weight": 1.0}, {"source": "test_auth_rationale_70", "target": "test_auth_test_session_required_for_mutation", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L70", "weight": 1.0}, {"source": "test_auth_rationale_80", "target": "test_auth_test_session_open_for_reads", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_auth.py", "source_location": "L80", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_auth_reload_settings", "callee": "setenv", "source_file": "backend/tests/test_auth.py", "source_location": "L27"}, {"caller_nid": "test_auth_reload_settings", "callee": "setenv", "source_file": "backend/tests/test_auth.py", "source_location": "L28"}, {"caller_nid": "test_auth_reload_settings", "callee": "setenv", "source_file": "backend/tests/test_auth.py", "source_location": "L29"}, {"caller_nid": "test_auth_reload_settings", "callee": "Settings", "source_file": "backend/tests/test_auth.py", "source_location": "L33"}, {"caller_nid": "test_auth_test_admin_requires_token", "callee": "post", "source_file": "backend/tests/test_auth.py", "source_location": "L43"}, {"caller_nid": "test_auth_test_admin_requires_token", "callee": "post", "source_file": "backend/tests/test_auth.py", "source_location": "L46"}, {"caller_nid": "test_auth_test_admin_logs_requires_token", "callee": "get", "source_file": "backend/tests/test_auth.py", "source_location": "L56"}, {"caller_nid": "test_auth_test_admin_logs_requires_token", "callee": "get", "source_file": "backend/tests/test_auth.py", "source_location": "L59"}, {"caller_nid": "test_auth_test_session_required_for_mutation", "callee": "post", "source_file": "backend/tests/test_auth.py", "source_location": "L71"}, {"caller_nid": "test_auth_test_session_open_for_reads", "callee": "get", "source_file": "backend/tests/test_auth.py", "source_location": "L81"}, {"caller_nid": "test_auth_test_session_login_logout", "callee": "post", "source_file": "backend/tests/test_auth.py", "source_location": "L92"}, {"caller_nid": "test_auth_test_session_login_logout", "callee": "post", "source_file": "backend/tests/test_auth.py", "source_location": "L96"}, {"caller_nid": "test_auth_test_session_login_logout", "callee": "get", "source_file": "backend/tests/test_auth.py", "source_location": "L103"}, {"caller_nid": "test_auth_test_session_login_logout", "callee": "set", "source_file": "backend/tests/test_auth.py", "source_location": "L104"}, {"caller_nid": "test_auth_test_session_login_logout", "callee": "post", "source_file": "backend/tests/test_auth.py", "source_location": "L105"}, {"caller_nid": "test_auth_test_session_login_logout", "callee": "post", "source_file": "backend/tests/test_auth.py", "source_location": "L113"}]}