mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-29 19:59:13 -05:00
Clean up how the environments work.
This commit is contained in:
@@ -52,6 +52,7 @@ def test_run_a_python_hook(config_for_python_pre_commit_git_repo):
|
||||
assert ret[1] == "['/dev/null']\nHello World\n"
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.integration
|
||||
def test_run_a_hook_lots_of_files(config_for_python_pre_commit_git_repo):
|
||||
repo = Repository(config_for_python_pre_commit_git_repo)
|
||||
@@ -62,7 +63,10 @@ def test_run_a_hook_lots_of_files(config_for_python_pre_commit_git_repo):
|
||||
assert ret[1] == 'Hello World\n'
|
||||
|
||||
|
||||
@pytest.mark.skipif(True, reason="TODO: make this test not super slow")
|
||||
@pytest.mark.skipif(
|
||||
os.environ.get('slowtests', None) == 'false',
|
||||
reason="TODO: make this test not super slow",
|
||||
)
|
||||
def test_run_a_node_hook(config_for_node_pre_commit_git_repo):
|
||||
repo = Repository(config_for_node_pre_commit_git_repo)
|
||||
repo.install()
|
||||
|
||||
Reference in New Issue
Block a user