tmpdir = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_list_origin_contributors0')
def test_list_origin_contributors(tmpdir):
tmpdir = Path(tmpdir)
topological_order_path = tmpdir / "topo_order.csv.zst"
origin_contributors_path = tmpdir / "origin_contributors.csv.zst"
subprocess.run(
["zstdmt", "-o", topological_order_path],
input=TOPOLOGICAL_ORDER.encode(),
check=True,
)
task = ListOriginContributors(
local_graph_path=DATA_DIR / "compressed",
topological_order_path=topological_order_path,
origin_contributors_path=origin_contributors_path,
graph_name="example",
)
task.run()
csv_text = subprocess.check_output(["zstdcat", origin_contributors_path]).decode()
> assert csv_text == ORIGIN_CONTRIBUTORS
E AssertionError: assert '14:18:58.859...08a350165,2\n' == 'origin_SWHID...08a350165,2\n'
E + 14:18:58.859 [main] WARN it.unimi.dsi.big.webgraph.BVGraph - A cached long big list of offsets was found, but the corresponding offsets file has a later modification time
E origin_SWHID,person_id
E swh:1:ori:83404f995118bd25774f4ac14422a8f175e7a054,0
E swh:1:ori:83404f995118bd25774f4ac14422a8f175e7a054,2
E swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165,0
E swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165,1
E swh:1:ori:8f50d3f60eae370ddbf85c86219c55108a350165,2
.tox/py3/lib/python3.7/site-packages/swh/graph/tests/test_origin_contributors.py:86: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Dec 7 2022, 3:19 PM