mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add failing test for versioned repositories.
This commit is contained in:
parent
3baae2fd1e
commit
fdd6989ece
6 changed files with 44 additions and 0 deletions
|
|
@ -72,6 +72,11 @@ def python_hooks_repo(dummy_git_repo):
|
|||
yield _make_repo(dummy_git_repo, 'python_hooks_repo')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def python3_hooks_repo(dummy_git_repo):
|
||||
yield _make_repo(dummy_git_repo, 'python3_hooks_repo')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def node_hooks_repo(dummy_git_repo):
|
||||
yield _make_repo(dummy_git_repo, 'node_hooks_repo')
|
||||
|
|
@ -133,6 +138,11 @@ def config_for_python_hooks_repo(python_hooks_repo):
|
|||
yield _make_config(python_hooks_repo, 'foo', '\\.py$')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def config_for_python3_hooks_repo(python3_hooks_repo):
|
||||
yield _make_config(python3_hooks_repo, 'python3-hook', '\\.py$')
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
def config_for_prints_cwd_repo(prints_cwd_repo):
|
||||
yield _make_config(prints_cwd_repo, 'prints_cwd', '^$')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue