コード例 #1
0
ファイル: test_cli.py プロジェクト: AvivC/hyper
def test_cli_with_system_exit(argv):
    with pytest.raises(SystemExit):
        main(argv)
コード例 #2
0
ファイル: test_cli.py プロジェクト: ryanwang520/hyper-1
def test_cli_with_system_exit(argv):
    with pytest.raises(SystemExit):
        main(argv)
コード例 #3
0
ファイル: test_cli.py プロジェクト: AvivC/hyper
def test_cli_normal(monkeypatch, argv):
    monkeypatch.setattr('hyper.cli.HTTPConnection', DummyConnection)
    main(argv)
    assert True
コード例 #4
0
ファイル: test_cli.py プロジェクト: ryanwang520/hyper-1
def test_cli_normal(monkeypatch, argv):
    monkeypatch.setattr('hyper.cli.HTTPConnection', DummyConnection)
    main(argv)
    assert True