From 17aa31456d99651c651683535243647508eec628 Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Tue, 30 Jan 2018 16:13:46 -0800 Subject: Properly support pulling all tags in DockerClient.images.pull Signed-off-by: Joffrey F --- tests/integration/models_images_test.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/integration/models_images_test.py') diff --git a/tests/integration/models_images_test.py b/tests/integration/models_images_test.py index 9313916..2fa71a7 100644 --- a/tests/integration/models_images_test.py +++ b/tests/integration/models_images_test.py @@ -74,6 +74,12 @@ class ImageCollectionTest(BaseIntegrationTest): image = client.images.pull('alpine', tag='3.3') assert 'alpine:3.3' in image.attrs['RepoTags'] + def test_pull_multiple(self): + client = docker.from_env(version=TEST_API_VERSION) + images = client.images.pull('hello-world') + assert len(images) == 1 + assert 'hello-world:latest' in images[0].attrs['RepoTags'] + def test_load_error(self): client = docker.from_env(version=TEST_API_VERSION) with pytest.raises(docker.errors.ImageLoadError): -- cgit v1.2.1