summaryrefslogtreecommitdiff
path: root/tests/integration/models_volumes_test.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2017-01-25 16:31:43 -0800
committerJoffrey F <joffrey@docker.com>2017-01-25 16:52:26 -0800
commita1d550a14c188dd9ce30d6344e35c5e48ad8f75d (patch)
tree60a433e24cbd7a92cac8d2074c7d621560c8aea2 /tests/integration/models_volumes_test.py
parent4ff77dc1c910e07117c925cf0f9784529f3bd8d5 (diff)
downloaddocker-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_volumes_test.py')
-rw-r--r--tests/integration/models_volumes_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/models_volumes_test.py b/tests/integration/models_volumes_test.py
index 094e68f..47b4a45 100644
--- a/tests/integration/models_volumes_test.py
+++ b/tests/integration/models_volumes_test.py
@@ -1,10 +1,10 @@
import docker
-from .base import BaseIntegrationTest
+from .base import BaseIntegrationTest, TEST_API_VERSION
class VolumesTest(BaseIntegrationTest):
def test_create_get(self):
- client = docker.from_env()
+ client = docker.from_env(version=TEST_API_VERSION)
volume = client.volumes.create(
'dockerpytest_1',
driver='local',
@@ -19,7 +19,7 @@ class VolumesTest(BaseIntegrationTest):
assert volume.name == 'dockerpytest_1'
def test_list_remove(self):
- client = docker.from_env()
+ client = docker.from_env(version=TEST_API_VERSION)
volume = client.volumes.create('dockerpytest_1')
self.tmp_volumes.append(volume.id)
assert volume in client.volumes.list()