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

Method test_push_image

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

Source from the content-addressed store, hash-verified

211 assert excinfo.value.args[0] == 'Resource ID was not provided'
212
213 def test_push_image(self):
214 with mock.patch('docker.auth.resolve_authconfig',
215 fake_resolve_authconfig):
216 self.client.push(fake_api.FAKE_IMAGE_NAME)
217
218 fake_request.assert_called_with(
219 'POST',
220 f"{url_prefix}images/test_image/push",
221 params={
222 'tag': None
223 },
224 data='{}',
225 headers={'Content-Type': 'application/json'},
226 stream=False,
227 timeout=DEFAULT_TIMEOUT_SECONDS
228 )
229
230 def test_push_image_with_tag(self):
231 with mock.patch('docker.auth.resolve_authconfig',

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected