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

Method test_exec_run_failure

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

Source from the content-addressed store, hash-verified

692 )
693
694 def test_exec_run_failure(self):
695 client = make_fake_client()
696 container = client.containers.get(FAKE_CONTAINER_ID)
697 container.exec_run("docker ps", privileged=True, stream=False)
698 client.api.exec_create.assert_called_with(
699 FAKE_CONTAINER_ID, "docker ps", stdout=True, stderr=True,
700 stdin=False, tty=False, privileged=True, user='', environment=None,
701 workdir=None,
702 )
703 client.api.exec_start.assert_called_with(
704 FAKE_EXEC_ID, detach=False, tty=False, stream=False, socket=False,
705 demux=False,
706 )
707
708 def test_export(self):
709 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