Public Access
- 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.
1 line
7.6 KiB
JSON
1 line
7.6 KiB
JSON
{"nodes": [{"id": "backend_tests_test_planner_select_py", "label": "test_planner_select.py", "file_type": "code", "source_file": "backend/tests/test_planner_select.py", "source_location": "L1"}, {"id": "test_planner_select_mk", "label": "_mk()", "file_type": "code", "source_file": "backend/tests/test_planner_select.py", "source_location": "L12"}, {"id": "test_planner_select_test_diversity_penalty_zero_when_all_unique", "label": "test_diversity_penalty_zero_when_all_unique()", "file_type": "code", "source_file": "backend/tests/test_planner_select.py", "source_location": "L33"}, {"id": "test_planner_select_test_diversity_penalty_three_chickens", "label": "test_diversity_penalty_three_chickens()", "file_type": "code", "source_file": "backend/tests/test_planner_select.py", "source_location": "L40"}, {"id": "test_planner_select_test_select_set_picks_diverse_over_homogeneous", "label": "test_select_set_picks_diverse_over_homogeneous()", "file_type": "code", "source_file": "backend/tests/test_planner_select.py", "source_location": "L49"}, {"id": "test_planner_select_test_select_set_handles_too_few", "label": "test_select_set_handles_too_few()", "file_type": "code", "source_file": "backend/tests/test_planner_select.py", "source_location": "L68"}, {"id": "test_planner_select_test_select_set_empty_input", "label": "test_select_set_empty_input()", "file_type": "code", "source_file": "backend/tests/test_planner_select.py", "source_location": "L75"}, {"id": "test_planner_select_rationale_50", "label": "Three chicken/american (each 0.95) lose to fully-diverse mixed (each 0.90) o", "file_type": "rationale", "source_file": "backend/tests/test_planner_select.py", "source_location": "L50"}], "edges": [{"source": "backend_tests_test_planner_select_py", "target": "decimal", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "uuid", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "app_services_planner_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "app_services_planner_select", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "app_services_planner_types", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "test_planner_select_mk", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "test_planner_select_test_diversity_penalty_zero_when_all_unique", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L33", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "test_planner_select_test_diversity_penalty_three_chickens", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L40", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "test_planner_select_test_select_set_picks_diverse_over_homogeneous", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L49", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "test_planner_select_test_select_set_handles_too_few", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L68", "weight": 1.0}, {"source": "backend_tests_test_planner_select_py", "target": "test_planner_select_test_select_set_empty_input", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L75", "weight": 1.0}, {"source": "test_planner_select_test_diversity_penalty_zero_when_all_unique", "target": "test_planner_select_mk", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L34", "weight": 1.0}, {"source": "test_planner_select_test_diversity_penalty_three_chickens", "target": "test_planner_select_mk", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L41", "weight": 1.0}, {"source": "test_planner_select_test_select_set_picks_diverse_over_homogeneous", "target": "test_planner_select_mk", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L56", "weight": 1.0}, {"source": "test_planner_select_test_select_set_handles_too_few", "target": "test_planner_select_mk", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L69", "weight": 1.0}, {"source": "test_planner_select_rationale_50", "target": "test_planner_select_test_select_set_picks_diverse_over_homogeneous", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/tests/test_planner_select.py", "source_location": "L50", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_planner_select_mk", "callee": "uuid4", "source_file": "backend/tests/test_planner_select.py", "source_location": "L13"}, {"caller_nid": "test_planner_select_mk", "callee": "ScoredRecipe", "source_file": "backend/tests/test_planner_select.py", "source_location": "L14"}, {"caller_nid": "test_planner_select_mk", "callee": "RecipeCost", "source_file": "backend/tests/test_planner_select.py", "source_location": "L18"}, {"caller_nid": "test_planner_select_mk", "callee": "Decimal", "source_file": "backend/tests/test_planner_select.py", "source_location": "L20"}, {"caller_nid": "test_planner_select_mk", "callee": "Decimal", "source_file": "backend/tests/test_planner_select.py", "source_location": "L21"}, {"caller_nid": "test_planner_select_test_diversity_penalty_zero_when_all_unique", "callee": "set_diversity_penalty", "source_file": "backend/tests/test_planner_select.py", "source_location": "L37"}, {"caller_nid": "test_planner_select_test_diversity_penalty_three_chickens", "callee": "set_diversity_penalty", "source_file": "backend/tests/test_planner_select.py", "source_location": "L45"}, {"caller_nid": "test_planner_select_test_diversity_penalty_three_chickens", "callee": "abs", "source_file": "backend/tests/test_planner_select.py", "source_location": "L46"}, {"caller_nid": "test_planner_select_test_select_set_picks_diverse_over_homogeneous", "callee": "select_set", "source_file": "backend/tests/test_planner_select.py", "source_location": "L63"}, {"caller_nid": "test_planner_select_test_select_set_handles_too_few", "callee": "select_set", "source_file": "backend/tests/test_planner_select.py", "source_location": "L71"}, {"caller_nid": "test_planner_select_test_select_set_handles_too_few", "callee": "len", "source_file": "backend/tests/test_planner_select.py", "source_location": "L72"}, {"caller_nid": "test_planner_select_test_select_set_empty_input", "callee": "select_set", "source_file": "backend/tests/test_planner_select.py", "source_location": "L76"}]} |