Fixture providing a mock console.
(self)
| 260 | |
| 261 | @pytest.fixture |
| 262 | def mock_console(self): |
| 263 | """Fixture providing a mock console.""" |
| 264 | console = Mock() |
| 265 | console.write = Mock() |
| 266 | console.read = Mock() |
| 267 | return console |
| 268 | |
| 269 | @pytest.mark.asyncio |
| 270 | async def test_run_command_safely_basic(self, mock_console): |
nothing calls this directly
no outgoing calls
no test coverage detected