(plugin: Plugin, connection: Connection, scope_config: Optional[ScopeConfig] = None)
| 199 | |
| 200 | |
| 201 | def 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) |
no test coverage detected