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

Method test_enable_plugin

tests/integration/api_plugin_test.py:47–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 return self.client.inspect_plugin(plugin_name)
46
47 def test_enable_plugin(self):
48 pl_data = self.ensure_plugin_installed(SSHFS)
49 assert pl_data['Enabled'] is False
50 assert self.client.enable_plugin(SSHFS)
51 pl_data = self.client.inspect_plugin(SSHFS)
52 assert pl_data['Enabled'] is True
53 with pytest.raises(docker.errors.APIError):
54 self.client.enable_plugin(SSHFS)
55
56 def test_disable_plugin(self):
57 pl_data = self.ensure_plugin_installed(SSHFS)

Callers

nothing calls this directly

Calls 3

enable_pluginMethod · 0.80
inspect_pluginMethod · 0.80

Tested by

no test coverage detected