(monkeypatch)
| 887 | |
| 888 | |
| 889 | def test_batch_file_open_error(monkeypatch) -> None: |
| 890 | mycli_main, _mycli_main_batch, MockMyCli = noninteractive_mock_mycli(monkeypatch) |
| 891 | runner = CliRunner() |
| 892 | |
| 893 | result = runner.invoke(mycli_main.click_entrypoint, args=['--batch', 'definitely_missing_file.sql']) |
| 894 | |
| 895 | assert result.exit_code != 0 |
| 896 | assert 'Failed to open --batch file' in result.output |
| 897 | assert MockMyCli.ran_queries == [] |
nothing calls this directly
no test coverage detected