MCPcopy Index your code
hub / github.com/docker/docker-py / test_pull_streaming

Method test_pull_streaming

tests/integration/api_image_test.py:50–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 assert 'Id' in img_info
49
50 def test_pull_streaming(self):
51 try:
52 self.client.remove_image('hello-world')
53 except docker.errors.APIError:
54 pass
55 stream = self.client.pull(
56 'hello-world', stream=True, decode=True)
57 self.tmp_imgs.append('hello-world')
58 for chunk in stream:
59 assert isinstance(chunk, dict)
60 assert len(self.client.images('hello-world')) >= 1
61 img_info = self.client.inspect_image('hello-world')
62 assert 'Id' in img_info
63
64 @requires_api_version('1.32')
65 @requires_experimental(until=None)

Callers

nothing calls this directly

Calls 4

remove_imageMethod · 0.80
inspect_imageMethod · 0.80
pullMethod · 0.45
imagesMethod · 0.45

Tested by

no test coverage detected