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

Method test_commit

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

Source from the content-addressed store, hash-verified

94 assert args[1]['stream']
95
96 def test_commit(self):
97 self.client.commit(fake_api.FAKE_CONTAINER_ID)
98
99 fake_request.assert_called_with(
100 'POST',
101 f"{url_prefix}commit",
102 data='{}',
103 headers={'Content-Type': 'application/json'},
104 params={
105 'repo': None,
106 'comment': None,
107 'tag': None,
108 'container': fake_api.FAKE_CONTAINER_ID,
109 'author': None,
110 'pause': True,
111 'changes': None
112 },
113 timeout=DEFAULT_TIMEOUT_SECONDS
114 )
115
116 def test_remove_image(self):
117 self.client.remove_image(fake_api.FAKE_IMAGE_ID)

Callers

nothing calls this directly

Calls 1

commitMethod · 0.45

Tested by

no test coverage detected