MCPcopy Create free account
hub / github.com/apache/devlake / assert_plugin_run

Function assert_plugin_run

backend/python/pydevlake/pydevlake/testing/testing.py:201–212  ·  view source on GitHub ↗
(plugin: Plugin, connection: Connection, scope_config: Optional[ScopeConfig] = None)

Source from the content-addressed store, hash-verified

199
200
201def assert_plugin_run(plugin: Plugin, connection: Connection, scope_config: Optional[ScopeConfig] = None):
202 assert_valid_plugin(plugin)
203 assert_valid_connection(plugin, connection)
204 groups = assert_valid_remote_scope_groups(plugin, connection)
205 scope = assert_valid_remote_scopes(plugin, connection, groups[0].id)[0]
206 assert_valid_domain_scopes(plugin, scope)
207 scope_config = scope_config or plugin.scope_config_type()
208 assert_valid_pipeline_plan(plugin, connection, scope, scope_config)
209 for stream in plugin.streams:
210 if isinstance(stream, type):
211 stream = stream(plugin.name)
212 assert_stream_run(stream, connection, scope, scope_config)

Callers 1

Calls 9

assert_valid_pluginFunction · 0.85
assert_valid_connectionFunction · 0.85
streamFunction · 0.85
assert_stream_runFunction · 0.85
scope_config_typeMethod · 0.45

Tested by

no test coverage detected