mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
use __wrapped__ instead of manually clearing cache
This commit is contained in:
parent
b34b1a0ab3
commit
b6288e61f3
1 changed files with 1 additions and 2 deletions
|
|
@ -5,12 +5,11 @@ from pre_commit.util import CalledProcessError
|
|||
|
||||
|
||||
def test_docker_is_running_process_error():
|
||||
docker.docker_is_running.cache_clear()
|
||||
with mock.patch(
|
||||
'pre_commit.languages.docker.cmd_output_b',
|
||||
side_effect=CalledProcessError(1, (), 0, b'', None),
|
||||
):
|
||||
assert docker.docker_is_running() is False
|
||||
assert docker.docker_is_running.__wrapped__() is False
|
||||
|
||||
|
||||
def test_docker_fallback_user():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue