()
| 36 | |
| 37 | |
| 38 | def test_interactive(): |
| 39 | def mock_input(prompt): |
| 40 | raise KeyboardInterrupt |
| 41 | |
| 42 | with patch("builtins.print") as patched, patch("builtins.input", mock_input): |
| 43 | parse.interactive() |
| 44 | patched.assert_called() |
| 45 | |
| 46 | |
| 47 | def test_main_no_args_is_interactive(): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…