MCPcopy
hub / github.com/apache/caldera / test_plugin

Function test_plugin

tests/api/v2/handlers/test_plugins_api.py:10–13  ·  view source on GitHub ↗
(event_loop, api_v2_client)

Source from the content-addressed store, hash-verified

8
9@pytest.fixture
10def test_plugin(event_loop, api_v2_client):
11 plugin = Plugin(name="test_plugin", enabled=True, description="a test plugin", address="test_address")
12 event_loop.run_until_complete(BaseService.get_service('data_svc').store(plugin))
13 return plugin
14
15
16@pytest.fixture

Callers

nothing calls this directly

Calls 3

PluginClass · 0.90
get_serviceMethod · 0.80
storeMethod · 0.45

Tested by

no test coverage detected