|
30 | 30 | from testing.fixtures import modify_manifest |
31 | 31 | from testing.util import cwd |
32 | 32 | from testing.util import get_resource_path |
33 | | -from testing.util import skipif_cant_run_docker |
34 | 33 |
|
35 | 34 |
|
36 | 35 | def _norm_out(b): |
@@ -163,45 +162,6 @@ def test_language_versioned_python_hook(tempdir_factory, store): |
163 | 162 | ) |
164 | 163 |
|
165 | 164 |
|
166 | | -@skipif_cant_run_docker # pragma: win32 no cover |
167 | | -def test_run_a_docker_hook(tempdir_factory, store): |
168 | | - _test_hook_repo( |
169 | | - tempdir_factory, store, 'docker_hooks_repo', |
170 | | - 'docker-hook', |
171 | | - ['Hello World from docker'], b'Hello World from docker\n', |
172 | | - ) |
173 | | - |
174 | | - |
175 | | -@skipif_cant_run_docker # pragma: win32 no cover |
176 | | -def test_run_a_docker_hook_with_entry_args(tempdir_factory, store): |
177 | | - _test_hook_repo( |
178 | | - tempdir_factory, store, 'docker_hooks_repo', |
179 | | - 'docker-hook-arg', |
180 | | - ['Hello World from docker'], b'Hello World from docker', |
181 | | - ) |
182 | | - |
183 | | - |
184 | | -@skipif_cant_run_docker # pragma: win32 no cover |
185 | | -def test_run_a_failing_docker_hook(tempdir_factory, store): |
186 | | - _test_hook_repo( |
187 | | - tempdir_factory, store, 'docker_hooks_repo', |
188 | | - 'docker-hook-failing', |
189 | | - ['Hello World from docker'], |
190 | | - mock.ANY, # an error message about `bork` not existing |
191 | | - expected_return_code=127, |
192 | | - ) |
193 | | - |
194 | | - |
195 | | -@skipif_cant_run_docker # pragma: win32 no cover |
196 | | -@pytest.mark.parametrize('hook_id', ('echo-entrypoint', 'echo-cmd')) |
197 | | -def test_run_a_docker_image_hook(tempdir_factory, store, hook_id): |
198 | | - _test_hook_repo( |
199 | | - tempdir_factory, store, 'docker_image_hooks_repo', |
200 | | - hook_id, |
201 | | - ['Hello World from docker'], b'Hello World from docker\n', |
202 | | - ) |
203 | | - |
204 | | - |
205 | 165 | def test_system_hook_with_spaces(tempdir_factory, store): |
206 | 166 | _test_hook_repo( |
207 | 167 | tempdir_factory, store, 'system_hook_with_spaces_repo', |
|
0 commit comments