mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 20:44:18 +00:00
Replace deprecated yield_fixture with fixture
Committed via https://github.com/asottile/all-repos
This commit is contained in:
parent
0ddb3b8527
commit
4ab791497c
3 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ from pre_commit.util import cmd_output
|
|||
from pre_commit_hooks.forbid_new_submodules import main
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
@pytest.fixture
|
||||
def git_dir_with_git_dir(tmpdir):
|
||||
with tmpdir.as_cwd():
|
||||
cmd_output('git', 'init', '.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue