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

Method setUpClass

tests/integration/models_services_test.py:15–18  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

13class ServiceTest(unittest.TestCase):
14 @classmethod
15 def setUpClass(cls):
16 client = docker.from_env(version=TEST_API_VERSION)
17 helpers.force_leave_swarm(client)
18 client.swarm.init('127.0.0.1', listen_addr=helpers.swarm_listen_addr())
19
20 @classmethod
21 def tearDownClass(cls):

Callers

nothing calls this directly

Calls 2

from_envMethod · 0.80
initMethod · 0.80

Tested by

no test coverage detected