mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Move empty_git_dir out of pytest fixtures.
This commit is contained in:
parent
7b1230df27
commit
047a933554
10 changed files with 159 additions and 99 deletions
|
|
@ -75,11 +75,9 @@ def test_run_all_hooks_failing(
|
|||
({'verbose': True}, ('foo.py\nHello World',), 0, True),
|
||||
({'hook': 'bash_hook'}, ('Bash hook', 'Passed'), 0, True),
|
||||
({'hook': 'nope'}, ('No hook with id `nope`',), 1, True),
|
||||
# All the files in the repo.
|
||||
# This seems kind of weird but it is beacuse py.test reuses fixtures
|
||||
(
|
||||
{'all_files': True, 'verbose': True},
|
||||
('hooks.yaml', 'bin/hook.sh', 'foo.py', 'dummy'),
|
||||
('foo.py'),
|
||||
0,
|
||||
True,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue