mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Replace deprecated yield_fixture with fixture
Committed via https://github.com/asottile/all-repos
This commit is contained in:
parent
98ec74dcab
commit
0f54fedac9
6 changed files with 28 additions and 28 deletions
|
|
@ -14,7 +14,7 @@ from pre_commit import error_handler
|
|||
from testing.util import cmd_output_mocked_pre_commit_home
|
||||
|
||||
|
||||
@pytest.yield_fixture
|
||||
@pytest.fixture
|
||||
def mocked_log_and_exit():
|
||||
with mock.patch.object(error_handler, '_log_and_exit') as log_and_exit:
|
||||
yield log_and_exit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue