MCPcopy Create free account
hub / github.com/docker/docker-py / test_detach_with_config_file

Method test_detach_with_config_file

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

Source from the content-addressed store, hash-verified

211 )
212
213 def test_detach_with_config_file(self):
214 self.client._general_configs['detachKeys'] = 'ctrl-p'
215 container = self.client.create_container(
216 TEST_IMG, 'cat', detach=True, stdin_open=True
217 )
218 id = container['Id']
219 self.client.start(id)
220 self.tmp_containers.append(id)
221
222 exec_id = self.client.exec_create(
223 id, 'cat', stdin=True, tty=True, stdout=True
224 )
225 sock = self.client.exec_start(exec_id, tty=True, socket=True)
226 self.addCleanup(sock.close)
227
228 assert_cat_socket_detached_with_keys(sock, [ctrl_with('p')])
229
230
231class ExecDemuxTest(BaseAPIIntegrationTest):

Callers

nothing calls this directly

Calls 6

ctrl_withFunction · 0.85
create_containerMethod · 0.80
exec_createMethod · 0.80
exec_startMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected