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

Method teardown_class

tests/integration/api_service_test.py:20–22  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

18
19 @classmethod
20 def teardown_class(cls):
21 client = cls.get_client_instance()
22 force_leave_swarm(client)
23
24 def tearDown(self):
25 for service in self.client.services(filters={'name': 'dockerpytest_'}):

Callers

nothing calls this directly

Calls 2

force_leave_swarmFunction · 0.85
get_client_instanceMethod · 0.45

Tested by

no test coverage detected