mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Coverage complete
This commit is contained in:
parent
b06da3e9cd
commit
08b379bf45
1 changed files with 15 additions and 0 deletions
15
tests/languages/docker_test.py
Normal file
15
tests/languages/docker_test.py
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
from __future__ import absolute_import
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import mock
|
||||||
|
|
||||||
|
from pre_commit.languages import docker
|
||||||
|
from pre_commit.util import CalledProcessError
|
||||||
|
|
||||||
|
|
||||||
|
def test_docker_is_running_process_error():
|
||||||
|
with mock.patch(
|
||||||
|
'pre_commit.languages.docker.cmd_output',
|
||||||
|
side_effect=CalledProcessError(*(None,) * 4)
|
||||||
|
):
|
||||||
|
assert docker.docker_is_running() is False
|
||||||
Loading…
Add table
Add a link
Reference in a new issue