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
5.6 KiB
JSON
1 line
5.6 KiB
JSON
{"nodes": [{"id": "backend_tests_test_recipe_api_py", "label": "test_recipe_api.py", "file_type": "code", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L1"}, {"id": "test_recipe_api_admin_headers", "label": "_admin_headers()", "file_type": "code", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L6"}, {"id": "test_recipe_api_new_ingredient", "label": "_new_ingredient()", "file_type": "code", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L10"}, {"id": "test_recipe_api_test_create_recipe_with_canonical_ingredients", "label": "test_create_recipe_with_canonical_ingredients()", "file_type": "code", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L20"}, {"id": "test_recipe_api_test_create_recipe_rejects_unknown_ingredient_id", "label": "test_create_recipe_rejects_unknown_ingredient_id()", "file_type": "code", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L45"}, {"id": "test_recipe_api_test_list_recipes_returns_seeded_data", "label": "test_list_recipes_returns_seeded_data()", "file_type": "code", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L63"}], "edges": [{"source": "backend_tests_test_recipe_api_py", "target": "pytest", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_tests_test_recipe_api_py", "target": "test_recipe_api_admin_headers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_tests_test_recipe_api_py", "target": "test_recipe_api_new_ingredient", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_tests_test_recipe_api_py", "target": "test_recipe_api_test_create_recipe_with_canonical_ingredients", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L20", "weight": 1.0}, {"source": "backend_tests_test_recipe_api_py", "target": "test_recipe_api_test_create_recipe_rejects_unknown_ingredient_id", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L45", "weight": 1.0}, {"source": "backend_tests_test_recipe_api_py", "target": "test_recipe_api_test_list_recipes_returns_seeded_data", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L63", "weight": 1.0}, {"source": "test_recipe_api_new_ingredient", "target": "test_recipe_api_admin_headers", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L14", "weight": 1.0}, {"source": "test_recipe_api_test_create_recipe_with_canonical_ingredients", "target": "test_recipe_api_new_ingredient", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L21", "weight": 1.0}, {"source": "test_recipe_api_test_create_recipe_with_canonical_ingredients", "target": "test_recipe_api_admin_headers", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L38", "weight": 1.0}, {"source": "test_recipe_api_test_create_recipe_rejects_unknown_ingredient_id", "target": "test_recipe_api_admin_headers", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L59", "weight": 1.0}, {"source": "test_recipe_api_test_list_recipes_returns_seeded_data", "target": "test_recipe_api_new_ingredient", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L64", "weight": 1.0}, {"source": "test_recipe_api_test_list_recipes_returns_seeded_data", "target": "test_recipe_api_admin_headers", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L78", "weight": 1.0}], "raw_calls": [{"caller_nid": "test_recipe_api_new_ingredient", "callee": "post", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L11"}, {"caller_nid": "test_recipe_api_new_ingredient", "callee": "json", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L17"}, {"caller_nid": "test_recipe_api_test_create_recipe_with_canonical_ingredients", "callee": "post", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L38"}, {"caller_nid": "test_recipe_api_test_create_recipe_with_canonical_ingredients", "callee": "json", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L40"}, {"caller_nid": "test_recipe_api_test_create_recipe_with_canonical_ingredients", "callee": "len", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L42"}, {"caller_nid": "test_recipe_api_test_create_recipe_rejects_unknown_ingredient_id", "callee": "post", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L59"}, {"caller_nid": "test_recipe_api_test_list_recipes_returns_seeded_data", "callee": "post", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L65"}, {"caller_nid": "test_recipe_api_test_list_recipes_returns_seeded_data", "callee": "get", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L80"}, {"caller_nid": "test_recipe_api_test_list_recipes_returns_seeded_data", "callee": "json", "source_file": "backend/tests/test_recipe_api.py", "source_location": "L82"}]} |