OMG we're running a hook

This commit is contained in:
Anthony Sottile 2014-03-13 22:12:33 -07:00
parent 47bad120e4
commit 871ab4d72f
11 changed files with 105 additions and 25 deletions

View file

@ -0,0 +1,15 @@
import pytest
import pre_commit.constants as C
from pre_commit.languages.all import languages
def test_all_languages_have_repo_setups():
assert set(languages.keys()) == C.SUPPORTED_LANGUAGES
@pytest.mark.parametrize('language', C.SUPPORTED_LANGUAGES)
def test_all_languages_support_interface(language):
assert hasattr(languages[language], 'install_environment')
assert hasattr(languages[language], 'run_hook')