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

Method test_build_with_buildargs

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

Source from the content-addressed store, hash-verified

150 ])
151
152 def test_build_with_buildargs(self):
153 script = io.BytesIO('\n'.join([
154 'FROM scratch',
155 'ARG test',
156 'USER $test'
157 ]).encode('ascii'))
158
159 stream = self.client.build(
160 fileobj=script, tag='buildargs', buildargs={'test': 'OK'}
161 )
162 self.tmp_imgs.append('buildargs')
163 for _chunk in stream:
164 pass
165
166 info = self.client.inspect_image('buildargs')
167 assert info['Config']['User'] == 'OK'
168
169 @requires_api_version('1.22')
170 def test_build_shmsize(self):

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
inspect_imageMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected