Use Hook api in languages

This commit is contained in:
Anthony Sottile 2018-12-31 13:16:48 -08:00
parent 5f9a667470
commit b59d7197ff
18 changed files with 41 additions and 38 deletions

View file

@ -39,7 +39,7 @@ def test_ENVIRONMENT_DIR(language):
@pytest.mark.parametrize('language', all_languages)
def test_run_hook_argpsec(language):
expected_argspec = ArgSpec(args=['prefix', 'hook', 'file_args'])
expected_argspec = ArgSpec(args=['hook', 'file_args'])
argspec = getargspec(languages[language].run_hook)
assert argspec == expected_argspec