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": "frontend_src_components_errorboundary_tsx", "label": "ErrorBoundary.tsx", "file_type": "code", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L1"}, {"id": "errorboundary_getderivedstatefromerror", "label": "getDerivedStateFromError()", "file_type": "code", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L19"}, {"id": "errorboundary_componentdidcatch", "label": "componentDidCatch()", "file_type": "code", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L23"}], "edges": [{"source": "frontend_src_components_errorboundary_tsx", "target": "react", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L1", "weight": 1.0}, {"source": "frontend_src_components_errorboundary_tsx", "target": "lucide_react", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L2", "weight": 1.0}, {"source": "frontend_src_components_errorboundary_tsx", "target": "frontend_src_components_ui_button", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L3", "weight": 1.0}, {"source": "frontend_src_components_errorboundary_tsx", "target": "errorboundary_getderivedstatefromerror", "relation": "contains", "confidence": "EXTRACTED", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L19", "weight": 1.0}, {"source": "frontend_src_components_errorboundary_tsx", "target": "errorboundary_componentdidcatch", "relation": "contains", "confidence": "EXTRACTED", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L23", "weight": 1.0}], "raw_calls": [{"caller_nid": "errorboundary_componentdidcatch", "callee": "error", "source_file": "frontend/src/components/ErrorBoundary.tsx", "source_location": "L24"}]}
|
||||
Reference in New Issue
Block a user