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

Function test_collect_data

backend/python/pydevlake/tests/stream_test.py:101–108  ·  view source on GitHub ↗
(stream, raw_data, ctx)

Source from the content-addressed store, hash-verified

99
100
101def test_collect_data(stream, raw_data, ctx):
102 gen = stream.collector.run(ctx)
103 list(gen)
104
105 with Session(ctx.engine) as session:
106 raw_model = stream.raw_model(session)
107 all_raw = [json.loads(r.data) for r in session.query(raw_model).all()]
108 assert all_raw == raw_data
109
110
111def test_extract_data(stream, raw_data, ctx):

Callers

nothing calls this directly

Calls 3

runMethod · 0.80
raw_modelMethod · 0.80
listFunction · 0.50

Tested by

no test coverage detected