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

Method test_list_remove

tests/integration/models_services_test.py:77–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 assert service.name == name
76
77 def test_list_remove(self):
78 client = docker.from_env(version=TEST_API_VERSION)
79 service = client.services.create(
80 name=helpers.random_name(),
81 image="alpine",
82 command="sleep 300"
83 )
84 assert service in client.services.list()
85 service.remove()
86 assert service not in client.services.list()
87
88 def test_tasks(self):
89 client = docker.from_env(version=TEST_API_VERSION)

Callers

nothing calls this directly

Calls 4

from_envMethod · 0.80
createMethod · 0.45
listMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected