def test_cli_with_system_exit(argv): with pytest.raises(SystemExit): main(argv)
def test_cli_normal(monkeypatch, argv): monkeypatch.setattr('hyper.cli.HTTPConnection', DummyConnection) main(argv) assert True