Test that read_input passes up EOFErrors.
(base_app, monkeypatch)
| 2227 | |
| 2228 | |
| 2229 | def test_read_input_eof(base_app, monkeypatch) -> None: |
| 2230 | """Test that read_input passes up EOFErrors.""" |
| 2231 | read_raw_mock = mock.MagicMock(name="_read_raw_input", side_effect=EOFError) |
| 2232 | monkeypatch.setattr("cmd2.Cmd._read_raw_input", read_raw_mock) |
| 2233 | |
| 2234 | with pytest.raises(EOFError): |
| 2235 | base_app.read_input("Prompt> ") |
| 2236 | |
| 2237 | |
| 2238 | def test_read_secret(base_app, monkeypatch): |
nothing calls this directly
no test coverage detected
searching dependent graphs…