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

Method test_build_from_stringio

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

Source from the content-addressed store, hash-verified

70 assert len(logs) > 0
71
72 def test_build_from_stringio(self):
73 return
74 script = io.StringIO('\n'.join([
75 'FROM busybox',
76 'RUN mkdir -p /tmp/test',
77 'EXPOSE 8080',
78 'ADD https://dl.dropboxusercontent.com/u/20637798/silence.tar.gz'
79 ' /tmp/silence.tar.gz'
80 ]))
81 stream = self.client.build(fileobj=script)
82 logs = ''
83 for chunk in stream:
84 chunk = chunk.decode('utf-8')
85 logs += chunk
86 assert logs != ''
87
88 def test_build_with_dockerignore(self):
89 base_dir = tempfile.mkdtemp()

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected