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_api_auth_py", "label": "auth.py", "file_type": "code", "source_file": "backend/app/api/auth.py", "source_location": "L1"}, {"id": "auth_loginrequest", "label": "LoginRequest", "file_type": "code", "source_file": "backend/app/api/auth.py", "source_location": "L26"}, {"id": "basemodel", "label": "BaseModel", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "auth_login", "label": "login()", "file_type": "code", "source_file": "backend/app/api/auth.py", "source_location": "L31"}, {"id": "auth_logout", "label": "logout()", "file_type": "code", "source_file": "backend/app/api/auth.py", "source_location": "L64"}, {"id": "auth_rationale_1", "label": "Family-shared session login. POST /api/auth/login \u2014 body ``{\"password\": \"...\"}`", "file_type": "rationale", "source_file": "backend/app/api/auth.py", "source_location": "L1"}], "edges": [{"source": "backend_app_api_auth_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "pydantic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L15", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L16", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "app_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L18", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "app_database", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L19", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "app_models", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L20", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "app_security", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L21", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "auth_loginrequest", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L26", "weight": 1.0}, {"source": "auth_loginrequest", "target": "basemodel", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L26", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "auth_login", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L31", "weight": 1.0}, {"source": "backend_app_api_auth_py", "target": "auth_logout", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L64", "weight": 1.0}, {"source": "auth_rationale_1", "target": "backend_app_api_auth_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/app/api/auth.py", "source_location": "L1", "weight": 1.0}], "raw_calls": [{"caller_nid": "auth_login", "callee": "HTTPException", "source_file": "backend/app/api/auth.py", "source_location": "L34"}, {"caller_nid": "auth_login", "callee": "HTTPException", "source_file": "backend/app/api/auth.py", "source_location": "L39"}, {"caller_nid": "auth_login", "callee": "first", "source_file": "backend/app/api/auth.py", "source_location": "L43"}, {"caller_nid": "auth_login", "callee": "query", "source_file": "backend/app/api/auth.py", "source_location": "L43"}, {"caller_nid": "auth_login", "callee": "str", "source_file": "backend/app/api/auth.py", "source_location": "L47"}, {"caller_nid": "auth_login", "callee": "issue_session", "source_file": "backend/app/api/auth.py", "source_location": "L48"}, {"caller_nid": "auth_login", "callee": "Response", "source_file": "backend/app/api/auth.py", "source_location": "L50"}, {"caller_nid": "auth_login", "callee": "set_cookie", "source_file": "backend/app/api/auth.py", "source_location": "L51"}, {"caller_nid": "auth_logout", "callee": "Response", "source_file": "backend/app/api/auth.py", "source_location": "L65"}, {"caller_nid": "auth_logout", "callee": "delete_cookie", "source_file": "backend/app/api/auth.py", "source_location": "L66"}]}
|
||||
Reference in New Issue
Block a user