Skip to content

Commit 3e458e3

Browse files
committed
Remove a couple more tests
1 parent b854c6c commit 3e458e3

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

tests/unit/test_app.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import errno
21
from tempfile import TemporaryDirectory
32
from unittest.mock import patch
43

54
import escapism
6-
import pytest
75

86
import docker
97
from repo2docker.__main__ import make_r2d
@@ -76,25 +74,3 @@ def test_run_kwargs(repo_with_content):
7674
args, kwargs = containers.run.call_args
7775
assert "somekey" in kwargs
7876
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

0 commit comments

Comments
 (0)