コード例 #1
0
ファイル: test_load_front_end.py プロジェクト: pradal/pkglts
def test_load_stdout_exists():
    ife = get_install_front_end('stdout')
    assert hasattr(ife, "install")
コード例 #2
0
ファイル: test_load_front_end.py プロジェクト: pradal/pkglts
def test_load_raise_import_error_if_not_available_name():
    with pytest.raises(ImportError):
        get_install_front_end("takapouet")
コード例 #3
0
ファイル: test_load_front_end.py プロジェクト: pradal/pkglts
def test_load_pip_exists():
    ife = get_install_front_end('pip')
    assert hasattr(ife, "install")
コード例 #4
0
def test_load_stdout_exists():
    ife = get_install_front_end('stdout')
    assert hasattr(ife, "install")
コード例 #5
0
def test_load_raise_import_error_if_not_available_name():
    assert_raises(ImportError, lambda: get_install_front_end("takapouet"))
コード例 #6
0
def test_load_pip_exists():
    ife = get_install_front_end('pip')
    assert hasattr(ife, "install")