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

Method test_push_image_stream

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

Source from the content-addressed store, hash-verified

272 )
273
274 def test_push_image_stream(self):
275 with mock.patch('docker.auth.resolve_authconfig',
276 fake_resolve_authconfig):
277 self.client.push(fake_api.FAKE_IMAGE_NAME, stream=True)
278
279 fake_request.assert_called_with(
280 'POST',
281 f"{url_prefix}images/test_image/push",
282 params={
283 'tag': None
284 },
285 data='{}',
286 headers={'Content-Type': 'application/json'},
287 stream=True,
288 timeout=DEFAULT_TIMEOUT_SECONDS
289 )
290
291 def test_tag_image(self):
292 self.client.tag(fake_api.FAKE_IMAGE_ID, fake_api.FAKE_REPO_NAME)

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected