Test that read_secret passes up EOFErrors.
(base_app, monkeypatch)
| 2250 | |
| 2251 | |
| 2252 | def test_read_secret_eof(base_app, monkeypatch): |
| 2253 | """Test that read_secret passes up EOFErrors.""" |
| 2254 | read_raw_mock = mock.MagicMock(name="_read_raw_input", side_effect=EOFError) |
| 2255 | monkeypatch.setattr("cmd2.Cmd._read_raw_input", read_raw_mock) |
| 2256 | |
| 2257 | with pytest.raises(EOFError): |
| 2258 | base_app.read_secret("Secret: ") |
| 2259 | |
| 2260 | |
| 2261 | def test_read_input_passes_all_arguments_to_resolver(base_app): |
nothing calls this directly
no test coverage detected
searching dependent graphs…