@@ -42,7 +42,7 @@ def test_pull(self):
4242 self .client .remove_image ('hello-world' )
4343 except docker .errors .APIError :
4444 pass
45- res = self .client .pull ('hello-world' )
45+ res = self .client .pull ('hello-world' , tag = 'latest' )
4646 self .tmp_imgs .append ('hello-world' )
4747 self .assertEqual (type (res ), six .text_type )
4848 self .assertGreaterEqual (
@@ -56,7 +56,8 @@ def test_pull_streaming(self):
5656 self .client .remove_image ('hello-world' )
5757 except docker .errors .APIError :
5858 pass
59- stream = self .client .pull ('hello-world' , stream = True , decode = True )
59+ stream = self .client .pull (
60+ 'hello-world' , tag = 'latest' , stream = True , decode = True )
6061 self .tmp_imgs .append ('hello-world' )
6162 for chunk in stream :
6263 assert isinstance (chunk , dict )
@@ -300,7 +301,7 @@ def test_prune_images(self):
300301 ctnr = self .client .create_container (BUSYBOX , ['sleep' , '9999' ])
301302 self .tmp_containers .append (ctnr )
302303
303- self .client .pull ('hello-world' )
304+ self .client .pull ('hello-world' , tag = 'latest' )
304305 self .tmp_imgs .append ('hello-world' )
305306 img_id = self .client .inspect_image ('hello-world' )['Id' ]
306307 result = self .client .prune_images ()
0 commit comments