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

{"nodes": [{"id": "backend_tests_test_planner_score_py", "label": "test_planner_score.py", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L1"}, {"id": "test_planner_score_test_time_bonus_capped_at_ideal", "label": "test_time_bonus_capped_at_ideal()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L18"}, {"id": "test_planner_score_test_time_bonus_decays_to_zero_at_full", "label": "test_time_bonus_decays_to_zero_at_full()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L23"}, {"id": "test_planner_score_test_time_bonus_linear_midpoint", "label": "test_time_bonus_linear_midpoint()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L27"}, {"id": "test_planner_score_test_recency_bonus_full_when_long_ago", "label": "test_recency_bonus_full_when_long_ago()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L32"}, {"id": "test_planner_score_test_recency_bonus_zero_when_just_eligible", "label": "test_recency_bonus_zero_when_just_eligible()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L38"}, {"id": "test_planner_score_test_recency_bonus_full_when_never_cooked", "label": "test_recency_bonus_full_when_never_cooked()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L45"}, {"id": "test_planner_score_test_normalize_savings_minmax", "label": "test_normalize_savings_minmax()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L49"}, {"id": "test_planner_score_test_normalize_savings_uniform_returns_zeros", "label": "test_normalize_savings_uniform_returns_zeros()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L54"}, {"id": "test_planner_score_test_score_recipes_orders_by_combined_score", "label": "test_score_recipes_orders_by_combined_score()", "file_type": "code", "source_file": "backend/tests/test_planner_score.py", "source_location": "L59"}], "edges": [{"source": "backend_tests_test_planner_score_py", "target": "datetime", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "decimal", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "uuid", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "app_services_planner_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "app_services_planner_score", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "app_services_planner_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_time_bonus_capped_at_ideal", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L18", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_time_bonus_decays_to_zero_at_full", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L23", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_time_bonus_linear_midpoint", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L27", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_recency_bonus_full_when_long_ago", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L32", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_recency_bonus_zero_when_just_eligible", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L38", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_recency_bonus_full_when_never_cooked", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L45", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_normalize_savings_minmax", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L49", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_normalize_savings_uniform_returns_zeros", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L54", "weight": 1.0}, {"source": "backend_tests_test_planner_score_py", "target": "test_planner_score_test_score_recipes_orders_by_combined_score", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_score.py", "source_location": "L59", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_planner_score_test_time_bonus_capped_at_ideal", "callee": "time_bonus", "source_file": "backend/tests/test_planner_score.py", "source_location": "L19"}, {"caller_nid": "test_planner_score_test_time_bonus_capped_at_ideal", "callee": "time_bonus", "source_file": "backend/tests/test_planner_score.py", "source_location": "L20"}, {"caller_nid": "test_planner_score_test_time_bonus_decays_to_zero_at_full", "callee": "time_bonus", "source_file": "backend/tests/test_planner_score.py", "source_location": "L24"}, {"caller_nid": "test_planner_score_test_time_bonus_linear_midpoint", "callee": "abs", "source_file": "backend/tests/test_planner_score.py", "source_location": "L29"}, {"caller_nid": "test_planner_score_test_time_bonus_linear_midpoint", "callee": "time_bonus", "source_file": "backend/tests/test_planner_score.py", "source_location": "L29"}, {"caller_nid": "test_planner_score_test_recency_bonus_full_when_long_ago", "callee": "date", "source_file": "backend/tests/test_planner_score.py", "source_location": "L33"}, {"caller_nid": "test_planner_score_test_recency_bonus_full_when_long_ago", "callee": "timedelta", "source_file": "backend/tests/test_planner_score.py", "source_location": "L34"}, {"caller_nid": "test_planner_score_test_recency_bonus_full_when_long_ago", "callee": "recency_bonus", "source_file": "backend/tests/test_planner_score.py", "source_location": "L35"}, {"caller_nid": "test_planner_score_test_recency_bonus_zero_when_just_eligible", "callee": "date", "source_file": "backend/tests/test_planner_score.py", "source_location": "L40"}, {"caller_nid": "test_planner_score_test_recency_bonus_zero_when_just_eligible", "callee": "timedelta", "source_file": "backend/tests/test_planner_score.py", "source_location": "L41"}, {"caller_nid": "test_planner_score_test_recency_bonus_zero_when_just_eligible", "callee": "recency_bonus", "source_file": "backend/tests/test_planner_score.py", "source_location": "L42"}, {"caller_nid": "test_planner_score_test_recency_bonus_full_when_never_cooked", "callee": "recency_bonus", "source_file": "backend/tests/test_planner_score.py", "source_location": "L46"}, {"caller_nid": "test_planner_score_test_recency_bonus_full_when_never_cooked", "callee": "date", "source_file": "backend/tests/test_planner_score.py", "source_location": "L46"}, {"caller_nid": "test_planner_score_test_normalize_savings_minmax", "callee": "normalize_savings", "source_file": "backend/tests/test_planner_score.py", "source_location": "L50"}, {"caller_nid": "test_planner_score_test_normalize_savings_minmax", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L50"}, {"caller_nid": "test_planner_score_test_normalize_savings_minmax", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L50"}, {"caller_nid": "test_planner_score_test_normalize_savings_minmax", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L50"}, {"caller_nid": "test_planner_score_test_normalize_savings_uniform_returns_zeros", "callee": "normalize_savings", "source_file": "backend/tests/test_planner_score.py", "source_location": "L55"}, {"caller_nid": "test_planner_score_test_normalize_savings_uniform_returns_zeros", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L55"}, {"caller_nid": "test_planner_score_test_normalize_savings_uniform_returns_zeros", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L55"}, {"caller_nid": "test_planner_score_test_normalize_savings_uniform_returns_zeros", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L55"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "uuid4", "source_file": "backend/tests/test_planner_score.py", "source_location": "L62"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "uuid4", "source_file": "backend/tests/test_planner_score.py", "source_location": "L70"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "RecipeCost", "source_file": "backend/tests/test_planner_score.py", "source_location": "L79"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L81"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L82"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "RecipeCost", "source_file": "backend/tests/test_planner_score.py", "source_location": "L89"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L91"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "Decimal", "source_file": "backend/tests/test_planner_score.py", "source_location": "L92"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "score_recipes", "source_file": "backend/tests/test_planner_score.py", "source_location": "L100"}, {"caller_nid": "test_planner_score_test_score_recipes_orders_by_combined_score", "callee": "date", "source_file": "backend/tests/test_planner_score.py", "source_location": "L105"}]}