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

Method test_build_streaming

tests/integration/api_build_test.py:58–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

56 )
57
58 def test_build_streaming(self):
59 script = io.BytesIO('\n'.join([
60 'FROM busybox',
61 'RUN mkdir -p /tmp/test',
62 'EXPOSE 8080',
63 'ADD https://dl.dropboxusercontent.com/u/20637798/silence.tar.gz'
64 ' /tmp/silence.tar.gz'
65 ]).encode('ascii'))
66 stream = self.client.build(fileobj=script, decode=True)
67 logs = []
68 for chunk in stream:
69 logs.append(chunk)
70 assert len(logs) > 0
71
72 def test_build_from_stringio(self):
73 return

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected