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

Method teardown_method

tests/integration/api_plugin_test.py:23–36  ·  view source on GitHub ↗
(self, method)

Source from the content-addressed store, hash-verified

21 pass
22
23 def teardown_method(self, method):
24 client = self.get_client_instance()
25 try:
26 client.disable_plugin(SSHFS, True)
27 except docker.errors.APIError:
28 pass
29
30 for p in self.tmp_plugins:
31 try:
32 client.remove_plugin(p)
33 except docker.errors.APIError:
34 pass
35
36 client.close()
37
38 def ensure_plugin_installed(self, plugin_name):
39 try:

Callers

nothing calls this directly

Calls 4

disable_pluginMethod · 0.80
remove_pluginMethod · 0.80
get_client_instanceMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected