Commit fd4c793
committed
fix: Move json import to module level in tests
Per Copilot review, import statements should be at the module level for
consistency and readability. Moved all 'import json' statements from inside
test functions to the top of test_api.py.
- Added 'import json' to module imports (line 13)
- Removed 3 inline imports from test functions
- All tests still passing (11/11)
- Code quality checks pass (ruff, mypy)1 parent e35585f commit fd4c793
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | 302 | | |
304 | 303 | | |
305 | 304 | | |
| |||
351 | 350 | | |
352 | 351 | | |
353 | 352 | | |
354 | | - | |
355 | | - | |
356 | 353 | | |
357 | 354 | | |
358 | 355 | | |
| |||
375 | 372 | | |
376 | 373 | | |
377 | 374 | | |
378 | | - | |
379 | | - | |
380 | 375 | | |
381 | 376 | | |
382 | 377 | | |
| |||
0 commit comments