We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f4ecb49 + c2de949 commit e7b2d9eCopy full SHA for e7b2d9e
1 file changed
tests/test_docker.py
@@ -4,7 +4,6 @@
4
"""
5
6
import pytest
7
-import docker
8
import io
9
10
from labgrid import Environment
@@ -161,6 +160,7 @@ def test_docker_with_daemon(command):
161
160
162
@pytest.fixture
163
def build_image():
+ import docker
164
client = docker.from_env()
165
dockerfile_content = """
166
FROM rastasheep/ubuntu-sshd:16.04
@@ -198,6 +198,7 @@ def test_docker_without_daemon(docker_env, mocker):
198
DockerManager and DockerStrategy without using an actual
199
docker daemon, real sockets or system time"""
200
201
202
# Target::update_resources() and Target::await_resources use
203
# time.monotonic() and time.sleep() to control when to search
204
# for resources. Avoid time delays and make running from cmd-line
0 commit comments