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

Method test_exec_run

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

Source from the content-addressed store, hash-verified

678 client.api.diff.assert_called_with(FAKE_CONTAINER_ID)
679
680 def test_exec_run(self):
681 client = make_fake_client()
682 container = client.containers.get(FAKE_CONTAINER_ID)
683 container.exec_run("echo hello world", privileged=True, stream=True)
684 client.api.exec_create.assert_called_with(
685 FAKE_CONTAINER_ID, "echo hello world", stdout=True, stderr=True,
686 stdin=False, tty=False, privileged=True, user='', environment=None,
687 workdir=None,
688 )
689 client.api.exec_start.assert_called_with(
690 FAKE_EXEC_ID, detach=False, tty=False, stream=True, socket=False,
691 demux=False,
692 )
693
694 def test_exec_run_failure(self):
695 client = make_fake_client()

Callers

nothing calls this directly

Calls 3

make_fake_clientFunction · 0.85
exec_runMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected