mirror of https://github.com/docker/docker-py.git
Only pull the 'latest' tag when testing images
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
dc2b24dcdd
commit
234296171f
|
@ -42,7 +42,7 @@ class PullImageTest(BaseAPIIntegrationTest):
|
|||
self.client.remove_image('hello-world')
|
||||
except docker.errors.APIError:
|
||||
pass
|
||||
res = self.client.pull('hello-world')
|
||||
res = self.client.pull('hello-world', tag='latest')
|
||||
self.tmp_imgs.append('hello-world')
|
||||
self.assertEqual(type(res), six.text_type)
|
||||
self.assertGreaterEqual(
|
||||
|
@ -56,7 +56,8 @@ class PullImageTest(BaseAPIIntegrationTest):
|
|||
self.client.remove_image('hello-world')
|
||||
except docker.errors.APIError:
|
||||
pass
|
||||
stream = self.client.pull('hello-world', stream=True, decode=True)
|
||||
stream = self.client.pull(
|
||||
'hello-world', tag='latest', stream=True, decode=True)
|
||||
self.tmp_imgs.append('hello-world')
|
||||
for chunk in stream:
|
||||
assert isinstance(chunk, dict)
|
||||
|
@ -300,7 +301,7 @@ class PruneImagesTest(BaseAPIIntegrationTest):
|
|||
ctnr = self.client.create_container(BUSYBOX, ['sleep', '9999'])
|
||||
self.tmp_containers.append(ctnr)
|
||||
|
||||
self.client.pull('hello-world')
|
||||
self.client.pull('hello-world', tag='latest')
|
||||
self.tmp_imgs.append('hello-world')
|
||||
img_id = self.client.inspect_image('hello-world')['Id']
|
||||
result = self.client.prune_images()
|
||||
|
|
Loading…
Reference in New Issue