tmpdir = PosixPath('/tmp/pytest-of-jenkins/pytest-0/test_toposort0')
def test_toposort(tmpdir):
tmpdir = Path(tmpdir)
topological_order_path = tmpdir / "topo_order.csv.zst"
task = TopoSort(
local_graph_path=DATA_DIR / "compressed",
topological_order_path=topological_order_path,
graph_name="example",
)
task.run()
csv_text = subprocess.check_output(["zstdcat", topological_order_path]).decode()
(header, *rows) = csv_text.split("\n")
(expected_header, *expected_lines) = EXPECTED.split("\n")
> assert header == expected_header
E AssertionError: assert '14:19:03.413...fication time' == 'SWHID,ancest...ple_ancestor2'
E - SWHID,ancestors,successors,sample_ancestor1,sample_ancestor2
E + 14:19:03.413 [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
.tox/py3/lib/python3.7/site-packages/swh/graph/tests/test_toposort.py:50: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Dec 7 2022, 3:19 PM