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

Method test_import_image

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

Source from the content-addressed store, hash-verified

133 )
134
135 def test_import_image(self):
136 self.client.import_image(
137 fake_api.FAKE_TARBALL_PATH,
138 repository=fake_api.FAKE_REPO_NAME,
139 tag=fake_api.FAKE_TAG_NAME
140 )
141
142 fake_request.assert_called_with(
143 'POST',
144 f"{url_prefix}images/create",
145 params={
146 'repo': fake_api.FAKE_REPO_NAME,
147 'tag': fake_api.FAKE_TAG_NAME,
148 'fromSrc': fake_api.FAKE_TARBALL_PATH
149 },
150 data=None,
151 timeout=DEFAULT_TIMEOUT_SECONDS
152 )
153
154 def test_import_image_from_bytes(self):
155 stream = (i for i in range(0, 100))

Callers

nothing calls this directly

Calls 1

import_imageMethod · 0.80

Tested by

no test coverage detected