Пример #1
0
def test_cli_with_system_exit(argv):
    with pytest.raises(SystemExit):
        main(argv)
Пример #2
0
def test_cli_with_system_exit(argv):
    with pytest.raises(SystemExit):
        main(argv)
Пример #3
0
def test_cli_normal(monkeypatch, argv):
    monkeypatch.setattr('hyper.cli.HTTPConnection', DummyConnection)
    main(argv)
    assert True
Пример #4
0
def test_cli_normal(monkeypatch, argv):
    monkeypatch.setattr('hyper.cli.HTTPConnection', DummyConnection)
    main(argv)
    assert True