Skip to content

Commit 7f02e35

Browse files
committed
mock mkdir in test
1 parent b50ae50 commit 7f02e35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_docker_paths_with_colons.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
from .util import needs_docker
77

88

9-
def test_docker_append_volume_read_only():
9+
def test_docker_append_volume_read_only(mocker):
10+
mocker.patch('os.mkdir')
1011
runtime = ['runtime']
1112
characters = ':,"\''
1213
DockerCommandLineJob.append_volume(
@@ -22,7 +23,8 @@ def test_docker_append_volume_read_only():
2223
'readonly'
2324
]
2425

25-
def test_docker_append_volume_read_write():
26+
def test_docker_append_volume_read_write(mocker):
27+
mocker.patch('os.mkdir')
2628
runtime = ['runtime']
2729
characters = ':,"\''
2830
DockerCommandLineJob.append_volume(

0 commit comments

Comments
 (0)