|
33 | 33 | from testing.util import cwd |
34 | 34 | from testing.util import get_resource_path |
35 | 35 | from testing.util import skipif_cant_run_docker |
36 | | -from testing.util import skipif_cant_run_lua |
37 | 36 | from testing.util import xfailif_windows |
38 | 37 |
|
39 | 38 |
|
@@ -993,29 +992,3 @@ def test_non_installable_hook_error_for_additional_dependencies(store, caplog): |
993 | 992 | 'using language `system` which does not install an environment. ' |
994 | 993 | 'Perhaps you meant to use a specific language?' |
995 | 994 | ) |
996 | | - |
997 | | - |
998 | | -@skipif_cant_run_lua # pragma: win32 no cover |
999 | | -def test_lua_hook(tempdir_factory, store): |
1000 | | - _test_hook_repo( |
1001 | | - tempdir_factory, store, 'lua_repo', |
1002 | | - 'hello-world-lua', [], b'hello world\n', |
1003 | | - ) |
1004 | | - |
1005 | | - |
1006 | | -@skipif_cant_run_lua # pragma: win32 no cover |
1007 | | -def test_local_lua_additional_dependencies(store): |
1008 | | - config = { |
1009 | | - 'repo': 'local', |
1010 | | - 'hooks': [{ |
1011 | | - 'id': 'local-lua', |
1012 | | - 'name': 'local-lua', |
1013 | | - 'entry': 'luacheck --version', |
1014 | | - 'language': 'lua', |
1015 | | - 'additional_dependencies': ['luacheck'], |
1016 | | - }], |
1017 | | - } |
1018 | | - hook = _get_hook(config, store, 'local-lua') |
1019 | | - ret, out = _hook_run(hook, (), color=False) |
1020 | | - assert b'Luacheck' in out |
1021 | | - assert ret == 0 |
0 commit comments