File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 1
- import errno
2
1
from tempfile import TemporaryDirectory
3
2
from unittest .mock import patch
4
3
5
4
import escapism
6
- import pytest
7
5
8
6
import docker
9
7
from repo2docker .__main__ import make_r2d
@@ -76,25 +74,3 @@ def test_run_kwargs(repo_with_content):
76
74
args , kwargs = containers .run .call_args
77
75
assert "somekey" in kwargs
78
76
assert kwargs ["somekey" ] == "somevalue"
79
-
80
-
81
- def test_dryrun_works_without_docker (tmpdir , capsys ):
82
- with chdir (tmpdir ):
83
- with patch .object (docker , "APIClient" ) as client :
84
- client .side_effect = docker .errors .DockerException ("Error: no Docker" )
85
- app = Repo2Docker (dry_run = True )
86
- app .build ()
87
- captured = capsys .readouterr ()
88
- assert "Error: no Docker" not in captured .err
89
-
90
-
91
- def test_error_log_without_docker (tmpdir , capsys ):
92
- with chdir (tmpdir ):
93
- with patch .object (docker , "APIClient" ) as client :
94
- client .side_effect = docker .errors .DockerException ("Error: no Docker" )
95
- app = Repo2Docker ()
96
-
97
- with pytest .raises (SystemExit ):
98
- app .build ()
99
- captured = capsys .readouterr ()
100
- assert "Error: no Docker" in captured .err
You can’t perform that action at this time.
0 commit comments