Commit 801ace9
test: fix unawaited coroutine warnings in test suite
Close abandoned coroutines to prevent RuntimeWarning emissions
during garbage collection:
- test_cli_commands.py: Patch async_main in TestMain tests so no
real coroutine is created when asyncio.run is mocked
- test_tui_actions.py: Close AsyncMock coroutines in
TestRunCommand tests after guard-clause early returns and
captured-but-unrun workers
- test_tui_screens.py: Close _do_credential_login coroutine
passed to mocked run_worker in TestAuthScreen tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 866240f commit 801ace9
3 files changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1422 | 1422 | | |
1423 | 1423 | | |
1424 | 1424 | | |
| 1425 | + | |
1425 | 1426 | | |
1426 | 1427 | | |
1427 | 1428 | | |
| |||
1436 | 1437 | | |
1437 | 1438 | | |
1438 | 1439 | | |
| 1440 | + | |
1439 | 1441 | | |
1440 | 1442 | | |
1441 | 1443 | | |
| |||
1455 | 1457 | | |
1456 | 1458 | | |
1457 | 1459 | | |
| 1460 | + | |
1458 | 1461 | | |
1459 | 1462 | | |
1460 | 1463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2308 | 2308 | | |
2309 | 2309 | | |
2310 | 2310 | | |
2311 | | - | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
2312 | 2315 | | |
2313 | 2316 | | |
2314 | 2317 | | |
2315 | 2318 | | |
2316 | 2319 | | |
2317 | 2320 | | |
2318 | 2321 | | |
| 2322 | + | |
2319 | 2323 | | |
2320 | 2324 | | |
2321 | 2325 | | |
2322 | | - | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
2323 | 2331 | | |
2324 | 2332 | | |
2325 | 2333 | | |
2326 | 2334 | | |
2327 | 2335 | | |
2328 | 2336 | | |
2329 | 2337 | | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
2330 | 2341 | | |
2331 | 2342 | | |
2332 | 2343 | | |
2333 | | - | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
2334 | 2349 | | |
2335 | 2350 | | |
2336 | 2351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1246 | 1246 | | |
1247 | 1247 | | |
1248 | 1248 | | |
| 1249 | + | |
1249 | 1250 | | |
1250 | 1251 | | |
1251 | 1252 | | |
| |||
1311 | 1312 | | |
1312 | 1313 | | |
1313 | 1314 | | |
1314 | | - | |
| 1315 | + | |
1315 | 1316 | | |
1316 | 1317 | | |
1317 | 1318 | | |
| 1319 | + | |
1318 | 1320 | | |
1319 | 1321 | | |
1320 | 1322 | | |
| |||
0 commit comments