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

{"nodes": [{"id": "backend_app_services_email_py", "label": "email.py", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L1"}, {"id": "email_emailbackend", "label": "EmailBackend", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L29"}, {"id": "protocol", "label": "Protocol", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "email_emailbackend_send", "label": ".send()", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L30"}, {"id": "email_consoleemailbackend", "label": "ConsoleEmailBackend", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L40"}, {"id": "email_consoleemailbackend_send", "label": ".send()", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L46"}, {"id": "email_sendgridemailbackend", "label": "SendGridEmailBackend", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L70"}, {"id": "email_sendgridemailbackend_init", "label": ".__init__()", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L71"}, {"id": "email_sendgridemailbackend_send", "label": ".send()", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L76"}, {"id": "email_get_email_backend", "label": "get_email_backend()", "file_type": "code", "source_file": "backend/app/services/email.py", "source_location": "L98"}, {"id": "email_rationale_1", "label": "Email backends. R2-B spike: only ConsoleEmailBackend is functional. SendGrid is", "file_type": "rationale", "source_file": "backend/app/services/email.py", "source_location": "L1"}, {"id": "email_rationale_41", "label": "Dev/spike backend. Prints to stdout AND appends a JSON line to backend/var/e", "file_type": "rationale", "source_file": "backend/app/services/email.py", "source_location": "L41"}], "edges": [{"source": "backend_app_services_email_py", "target": "json", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "sys", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "pathlib", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L13", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "sendgrid", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L16", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "sendgrid_helpers_mail", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L17", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "app_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L19", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "email_emailbackend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L29", "weight": 1.0}, {"source": "email_emailbackend", "target": "protocol", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L29", "weight": 1.0}, {"source": "email_emailbackend", "target": "email_emailbackend_send", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L30", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "email_consoleemailbackend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L40", "weight": 1.0}, {"source": "email_consoleemailbackend", "target": "email_consoleemailbackend_send", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L46", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "email_sendgridemailbackend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L70", "weight": 1.0}, {"source": "email_sendgridemailbackend", "target": "email_sendgridemailbackend_init", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L71", "weight": 1.0}, {"source": "email_sendgridemailbackend", "target": "email_sendgridemailbackend_send", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L76", "weight": 1.0}, {"source": "backend_app_services_email_py", "target": "email_get_email_backend", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L98", "weight": 1.0}, {"source": "email_get_email_backend", "target": "email_sendgridemailbackend", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L101", "weight": 1.0}, {"source": "email_get_email_backend", "target": "email_consoleemailbackend", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L102", "weight": 1.0}, {"source": "email_rationale_1", "target": "backend_app_services_email_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L1", "weight": 1.0}, {"source": "email_rationale_41", "target": "email_consoleemailbackend", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/app/services/email.py", "source_location": "L41", "weight": 1.0}], "raw_calls": [{"caller_nid": "email_consoleemailbackend_send", "callee": "isoformat", "source_file": "backend/app/services/email.py", "source_location": "L54"}, {"caller_nid": "email_consoleemailbackend_send", "callee": "now", "source_file": "backend/app/services/email.py", "source_location": "L54"}, {"caller_nid": "email_consoleemailbackend_send", "callee": "print", "source_file": "backend/app/services/email.py", "source_location": "L60"}, {"caller_nid": "email_consoleemailbackend_send", "callee": "mkdir", "source_file": "backend/app/services/email.py", "source_location": "L65"}, {"caller_nid": "email_consoleemailbackend_send", "callee": "open", "source_file": "backend/app/services/email.py", "source_location": "L66"}, {"caller_nid": "email_consoleemailbackend_send", "callee": "write", "source_file": "backend/app/services/email.py", "source_location": "L67"}, {"caller_nid": "email_consoleemailbackend_send", "callee": "dumps", "source_file": "backend/app/services/email.py", "source_location": "L67"}, {"caller_nid": "email_sendgridemailbackend_init", "callee": "SendGridAPIClient", "source_file": "backend/app/services/email.py", "source_location": "L72"}, {"caller_nid": "email_sendgridemailbackend_send", "callee": "Mail", "source_file": "backend/app/services/email.py", "source_location": "L83"}, {"caller_nid": "email_sendgridemailbackend_send", "callee": "ReplyTo", "source_file": "backend/app/services/email.py", "source_location": "L90"}, {"caller_nid": "email_sendgridemailbackend_send", "callee": "RuntimeError", "source_file": "backend/app/services/email.py", "source_location": "L93"}, {"caller_nid": "email_get_email_backend", "callee": "lower", "source_file": "backend/app/services/email.py", "source_location": "L99"}]}