Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56fca92

Browse files
committed
Remove slowtests=false setting
It wasn't actually working because of tox, I also don't use this.
1 parent 3b10ef4 commit 56fca92

4 files changed

Lines changed: 0 additions & 22 deletions

File tree

CONTRIBUTING.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ Alternatively, with the environment activated you can run all of the tests
3939
using:
4040
`py.test tests`
4141

42-
To skip the slower ruby / node integration tests, you can set the environment
43-
variable `slowtests=false`.
44-
4542
### Setting up the hooks
4643

4744
With the environment activated simply run `pre-commit install`.

testing/util.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ def cmd_output_mocked_pre_commit_home(*args, **kwargs):
3232
reason='Docker isn\'t running or can\'t be accessed',
3333
)
3434

35-
skipif_slowtests_false = pytest.mark.skipif(
36-
os.environ.get('slowtests') == 'false',
37-
reason='slowtests=false',
38-
)
39-
4035
skipif_cant_run_swift = pytest.mark.skipif(
4136
parse_shebang.find_executable('swift') is None,
4237
reason='swift isn\'t installed or can\'t be found',

tests/make_archives_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from pre_commit.util import cmd_output
1212
from pre_commit.util import cwd
1313
from testing.fixtures import git_dir
14-
from testing.util import skipif_slowtests_false
1514

1615

1716
def test_make_archive(tempdir_factory):
@@ -50,7 +49,6 @@ def test_make_archive(tempdir_factory):
5049
assert not os.path.exists(os.path.join(extract_dir, 'foo', 'bar'))
5150

5251

53-
@skipif_slowtests_false
5452
@pytest.mark.integration
5553
def test_main(tmpdir):
5654
make_archives.main(('--dest', tmpdir.strpath))

tests/repository_test.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from testing.util import get_resource_path
3232
from testing.util import skipif_cant_run_docker
3333
from testing.util import skipif_cant_run_swift
34-
from testing.util import skipif_slowtests_false
3534
from testing.util import xfailif_no_pcre_support
3635
from testing.util import xfailif_windows_no_node
3736
from testing.util import xfailif_windows_no_ruby
@@ -145,7 +144,6 @@ def test_versioned_python_hook(tempdir_factory, store):
145144
)
146145

147146

148-
@skipif_slowtests_false
149147
@skipif_cant_run_docker
150148
@pytest.mark.integration
151149
def test_run_a_docker_hook(tempdir_factory, store):
@@ -156,7 +154,6 @@ def test_run_a_docker_hook(tempdir_factory, store):
156154
)
157155

158156

159-
@skipif_slowtests_false
160157
@skipif_cant_run_docker
161158
@pytest.mark.integration
162159
def test_run_a_docker_hook_with_entry_args(tempdir_factory, store):
@@ -167,7 +164,6 @@ def test_run_a_docker_hook_with_entry_args(tempdir_factory, store):
167164
)
168165

169166

170-
@skipif_slowtests_false
171167
@skipif_cant_run_docker
172168
@pytest.mark.integration
173169
def test_run_a_failing_docker_hook(tempdir_factory, store):
@@ -179,7 +175,6 @@ def test_run_a_failing_docker_hook(tempdir_factory, store):
179175
)
180176

181177

182-
@skipif_slowtests_false
183178
@skipif_cant_run_docker
184179
@pytest.mark.integration
185180
@pytest.mark.parametrize('hook_id', ('echo-entrypoint', 'echo-cmd'))
@@ -191,7 +186,6 @@ def test_run_a_docker_image_hook(tempdir_factory, store, hook_id):
191186
)
192187

193188

194-
@skipif_slowtests_false
195189
@xfailif_windows_no_node
196190
@pytest.mark.integration
197191
def test_run_a_node_hook(tempdir_factory, store):
@@ -201,7 +195,6 @@ def test_run_a_node_hook(tempdir_factory, store):
201195
)
202196

203197

204-
@skipif_slowtests_false
205198
@xfailif_windows_no_node
206199
@pytest.mark.integration
207200
def test_run_versioned_node_hook(tempdir_factory, store):
@@ -211,7 +204,6 @@ def test_run_versioned_node_hook(tempdir_factory, store):
211204
)
212205

213206

214-
@skipif_slowtests_false
215207
@xfailif_windows_no_ruby
216208
@pytest.mark.integration
217209
def test_run_a_ruby_hook(tempdir_factory, store):
@@ -221,7 +213,6 @@ def test_run_a_ruby_hook(tempdir_factory, store):
221213
)
222214

223215

224-
@skipif_slowtests_false
225216
@xfailif_windows_no_ruby
226217
@pytest.mark.integration
227218
def test_run_versioned_ruby_hook(tempdir_factory, store):
@@ -233,7 +224,6 @@ def test_run_versioned_ruby_hook(tempdir_factory, store):
233224
)
234225

235226

236-
@skipif_slowtests_false
237227
@xfailif_windows_no_ruby
238228
@pytest.mark.integration
239229
def test_run_ruby_hook_with_disable_shared_gems(
@@ -499,7 +489,6 @@ def test_additional_dependencies_roll_forward(tempdir_factory, store):
499489
assert 'mccabe' in output
500490

501491

502-
@skipif_slowtests_false
503492
@xfailif_windows_no_ruby
504493
@pytest.mark.integration
505494
def test_additional_ruby_dependencies_installed(
@@ -516,7 +505,6 @@ def test_additional_ruby_dependencies_installed(
516505
assert 'tins' in output
517506

518507

519-
@skipif_slowtests_false
520508
@xfailif_windows_no_node
521509
@pytest.mark.integration
522510
def test_additional_node_dependencies_installed(

0 commit comments

Comments
 (0)