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

Function assert_stream_run

backend/python/pydevlake/pydevlake/testing/testing.py:88–95  ·  view source on GitHub ↗

Test that a stream can run all 3 steps without error.

(stream: Stream, connection: Connection, scope: ToolScope, scope_config: ScopeConfig)

Source from the content-addressed store, hash-verified

86
87
88def assert_stream_run(stream: Stream, connection: Connection, scope: ToolScope, scope_config: ScopeConfig):
89 """
90 Test that a stream can run all 3 steps without error.
91 """
92 ctx = make_context(connection, scope, scope_config)
93 stream.collector.run(ctx)
94 stream.extractor.run(ctx)
95 stream.convertor.run(ctx)
96
97
98def assert_valid_name(plugin: Plugin):

Callers 1

assert_plugin_runFunction · 0.85

Calls 2

make_contextFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected