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

Method setUp

tests/integration/models_swarm_test.py:12–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class SwarmTest(unittest.TestCase):
12 def setUp(self):
13 helpers.force_leave_swarm(docker.from_env(version=TEST_API_VERSION))
14
15 def tearDown(self):
16 helpers.force_leave_swarm(docker.from_env(version=TEST_API_VERSION))

Callers

nothing calls this directly

Calls 1

from_envMethod · 0.80

Tested by

no test coverage detected