diff options
author | Joffrey F <joffrey@docker.com> | 2017-01-25 16:31:43 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2017-01-25 16:52:26 -0800 |
commit | a1d550a14c188dd9ce30d6344e35c5e48ad8f75d (patch) | |
tree | 60a433e24cbd7a92cac8d2074c7d621560c8aea2 /tests/integration/models_resources_test.py | |
parent | 4ff77dc1c910e07117c925cf0f9784529f3bd8d5 (diff) | |
download | docker-py-config_test_api_version.tar.gz |
Allow configuring API version for integration test with env varconfig_test_api_version
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests/integration/models_resources_test.py')
-rw-r--r-- | tests/integration/models_resources_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/models_resources_test.py b/tests/integration/models_resources_test.py index b8eba81..4aafe0c 100644 --- a/tests/integration/models_resources_test.py +++ b/tests/integration/models_resources_test.py @@ -1,11 +1,11 @@ import docker -from .base import BaseIntegrationTest +from .base import BaseIntegrationTest, TEST_API_VERSION class ModelTest(BaseIntegrationTest): def test_reload(self): - client = docker.from_env() + client = docker.from_env(version=TEST_API_VERSION) container = client.containers.run("alpine", "sleep 300", detach=True) self.tmp_containers.append(container.id) first_started_at = container.attrs['State']['StartedAt'] |