Commit ccfb635
fix: correct FastAPI TestClient setup in workflow router tests
Fixed API test infrastructure issues:
- Changed TestClient(router) to TestClient(app) with proper FastAPI app
- Added app.include_router(router) to properly mount router
- Applied dependency_overrides to app instance instead of TestClient
- Resolved AttributeError: 'TestClient' object has no attribute 'dependency_overrides'
Test Results: 8/10 workflow router tests passing (80% success rate)
Overall API tests: 18/23 passing with main TestClient issue resolved
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ef3c137 commit ccfb635
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
108 | 119 | | |
109 | 120 | | |
110 | 121 | | |
| |||
0 commit comments