run_command must also execute *sync* callables inside an executor.
()
| 151 | |
| 152 | @pytest.mark.asyncio |
| 153 | async def test_run_command_sync_callable(): |
| 154 | """run_command must also execute *sync* callables inside an executor.""" |
| 155 | result = await run_command( |
| 156 | dummy_sync_command, |
| 157 | config_file="dummy.json", |
| 158 | servers=["S1"], |
| 159 | extra_params={"extra_arg": None}, |
| 160 | ) |
| 161 | assert result == "ok" |
| 162 | assert _ALL_TM[0].closed |
| 163 | |
| 164 | |
| 165 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected