Beispiel #1
0
def test_validate_addons_repo_raises_on_missing_disable_hook(
        addon_missing_disable_hook):
    with pytest.raises(MissingHookError) as err:
        validate_addons_repo(addon_missing_disable_hook)
    assert err.value.message == "Missing disable hook for foo addon"
Beispiel #2
0
def test_validate_addons_repo_raises_on_disable_not_executable(
        disable_not_executable):
    with pytest.raises(WrongHookPermissionsError) as err:
        validate_addons_repo(disable_not_executable)
    assert err.value.message == "disable hook for foo addon needs execute permissions"
Beispiel #3
0
def test_validate_addons_repo(repo_dir):
    validate_addons_repo(repo_dir)