mirror of https://github.com/docker/docker-py.git
Add hello-world to temp images in pull tests
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
1fb2db4951
commit
b1c2475698
|
@ -1120,6 +1120,7 @@ class TestPull(BaseTestCase):
|
||||||
except docker.errors.APIError:
|
except docker.errors.APIError:
|
||||||
pass
|
pass
|
||||||
res = self.client.pull('hello-world')
|
res = self.client.pull('hello-world')
|
||||||
|
self.tmp_imgs.append('hello-world')
|
||||||
self.assertEqual(type(res), six.text_type)
|
self.assertEqual(type(res), six.text_type)
|
||||||
self.assertGreaterEqual(
|
self.assertGreaterEqual(
|
||||||
len(self.client.images('hello-world')), 1
|
len(self.client.images('hello-world')), 1
|
||||||
|
@ -1135,6 +1136,7 @@ class TestPullStream(BaseTestCase):
|
||||||
except docker.errors.APIError:
|
except docker.errors.APIError:
|
||||||
pass
|
pass
|
||||||
stream = self.client.pull('hello-world', stream=True)
|
stream = self.client.pull('hello-world', stream=True)
|
||||||
|
self.tmp_imgs.append('hello-world')
|
||||||
for chunk in stream:
|
for chunk in stream:
|
||||||
if six.PY3:
|
if six.PY3:
|
||||||
chunk = chunk.decode('utf-8')
|
chunk = chunk.decode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue