()
| 203 | # run_command_sync (blocking wrapper) tests |
| 204 | # --------------------------------------------------------------------------- # |
| 205 | def test_run_command_sync_success(): |
| 206 | result = run_command_sync( |
| 207 | dummy_async_command, # works with async target |
| 208 | "dummy.json", |
| 209 | ["Sync"], |
| 210 | extra_params={"extra_arg": "bar"}, |
| 211 | ) |
| 212 | assert result == "ok-bar" |
| 213 | assert _ALL_TM[0].closed |
| 214 | |
| 215 | |
| 216 | def test_run_command_sync_exception(): |
nothing calls this directly
no test coverage detected