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

Method test_commit

tests/unit/models_containers_test.py:664–672  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

662 client.api.attach.assert_called_with(FAKE_CONTAINER_ID, stream=True)
663
664 def test_commit(self):
665 client = make_fake_client()
666 container = client.containers.get(FAKE_CONTAINER_ID)
667 image = container.commit()
668 client.api.commit.assert_called_with(FAKE_CONTAINER_ID,
669 repository=None,
670 tag=None)
671 assert isinstance(image, Image)
672 assert image.id == FAKE_IMAGE_ID
673
674 def test_diff(self):
675 client = make_fake_client()

Callers

nothing calls this directly

Calls 3

make_fake_clientFunction · 0.85
getMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected