mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
A few cleanups for CalledProcessError to hopefully make it more readable
This commit is contained in:
parent
83f0802578
commit
b90412742e
4 changed files with 36 additions and 45 deletions
|
|
@ -10,7 +10,7 @@ from pre_commit.util import CalledProcessError
|
|||
def test_docker_is_running_process_error():
|
||||
with mock.patch(
|
||||
'pre_commit.languages.docker.cmd_output_b',
|
||||
side_effect=CalledProcessError(*(None,) * 4),
|
||||
side_effect=CalledProcessError(None, None, None, None, None),
|
||||
):
|
||||
assert docker.docker_is_running() is False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue