Commit 2b1f5fe
feat: add unit tests with mocked httpx (28 tests)
- Test request construction, response parsing, error handling
- Mock httpx.Client.request instead of hitting real API
- Test all endpoints: scrape, extract, search, crawl, monitor, history
- Test HTTP errors (401, 402, 429), timeouts
- Test camelCase serialization
- Update CI to run test_client.py
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent fc8bd04 commit 2b1f5fe
3 files changed
Lines changed: 416 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments