Commit 116a0b2
committed
test: Add comprehensive test coverage (Phase 4)
- Added tests for new TypedDict definitions
- test_api_responses.py: Tests for all API response types
- test_callback_types.py: Tests for callback data structures
- Validates field types, optional fields, and real-world usage
- Added tests for TaskManagerMixin
- test_task_management_proper.py: Comprehensive async task management tests
- Tests task creation, cleanup, error handling, and concurrency
- Validates persistent tasks and memory management
- Fixed existing test issues
- Fixed test_market_data.py to use correct field names
- Tests now check 'name' field instead of 'symbol' for contract matching
Added 47 new tests covering critical functionality from previous phases.
This significantly improves test coverage for type safety and async
task management features.1 parent 8f8e6ed commit 116a0b2
File tree
4 files changed
+1038
-10
lines changed- tests
- client
- types
- utils
4 files changed
+1038
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments