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

Method test_diff

tests/integration/models_containers_test.py:339–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

337 ) == b"hello\n"
338
339 def test_diff(self):
340 client = docker.from_env(version=TEST_API_VERSION)
341 container = client.containers.run("alpine", "touch /test", detach=True)
342 self.tmp_containers.append(container.id)
343 container.wait()
344 assert container.diff() == [{'Path': '/test', 'Kind': 1}]
345
346 def test_exec_run_success(self):
347 client = docker.from_env(version=TEST_API_VERSION)

Callers

nothing calls this directly

Calls 4

from_envMethod · 0.80
runMethod · 0.80
waitMethod · 0.45
diffMethod · 0.45

Tested by

no test coverage detected