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

Method test_import_image_from_image

tests/unit/api_image_test.py:178–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 )
177
178 def test_import_image_from_image(self):
179 self.client.import_image(
180 image=fake_api.FAKE_IMAGE_NAME,
181 repository=fake_api.FAKE_REPO_NAME,
182 tag=fake_api.FAKE_TAG_NAME
183 )
184
185 fake_request.assert_called_with(
186 'POST',
187 f"{url_prefix}images/create",
188 params={
189 'repo': fake_api.FAKE_REPO_NAME,
190 'tag': fake_api.FAKE_TAG_NAME,
191 'fromImage': fake_api.FAKE_IMAGE_NAME
192 },
193 data=None,
194 timeout=DEFAULT_TIMEOUT_SECONDS
195 )
196
197 def test_inspect_image(self):
198 self.client.inspect_image(fake_api.FAKE_IMAGE_NAME)

Callers

nothing calls this directly

Calls 1

import_imageMethod · 0.80

Tested by

no test coverage detected