Public Access
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.
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
{"nodes": [{"id": "backend_app_main_py", "label": "main.py", "file_type": "code", "source_file": "backend/app/main.py", "source_location": "L1"}, {"id": "main_health_check", "label": "health_check()", "file_type": "code", "source_file": "backend/app/main.py", "source_location": "L19"}, {"id": "main_health_check_db", "label": "health_check_db()", "file_type": "code", "source_file": "backend/app/main.py", "source_location": "L24"}], "edges": [{"source": "backend_app_main_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_app_main_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_app_main_py", "target": "sqlalchemy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_database", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_app_main_py", "target": "logging", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_app_main_py", "target": "main_health_check", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L19", "weight": 1.0}, {"source": "backend_app_main_py", "target": "main_health_check_db", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L24", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_api", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L32", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_api", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L33", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_api", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L34", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_api", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L35", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_api", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L36", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_api", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L37", "weight": 1.0}, {"source": "backend_app_main_py", "target": "app_api", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/main.py", "source_location": "L38", "weight": 1.0}], "raw_calls": [{"caller_nid": "main_health_check_db", "callee": "execute", "source_file": "backend/app/main.py", "source_location": "L26"}, {"caller_nid": "main_health_check_db", "callee": "text", "source_file": "backend/app/main.py", "source_location": "L26"}, {"caller_nid": "main_health_check_db", "callee": "str", "source_file": "backend/app/main.py", "source_location": "L29"}]}
|
||||
Reference in New Issue
Block a user