Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
11
class
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_env
Method · 0.80
Tested by
no test coverage detected