Changeset View
Changeset View
Standalone View
Standalone View
swh/graph/tests/test_toposort.py
# Copyright (C) 2022 The Software Heritage developers | # Copyright (C) 2022 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from pathlib import Path | from pathlib import Path | ||||
import subprocess | import subprocess | ||||
from swh.graph.luigi import TopoSort | from swh.graph.luigi.misc_datasets import TopoSort | ||||
DATA_DIR = Path(__file__).parents[0] / "dataset" | DATA_DIR = Path(__file__).parents[0] / "dataset" | ||||
# FIXME: the order of sample ancestors should not be hardcoded | # FIXME: the order of sample ancestors should not be hardcoded | ||||
# FIXME: swh:1:snp:0000000000000000000000000000000000000022,3,1,swh has three possible | # FIXME: swh:1:snp:0000000000000000000000000000000000000022,3,1,swh has three possible | ||||
# sample ancestors; they should not be hardecoded here | # sample ancestors; they should not be hardecoded here | ||||
EXPECTED = """\ | EXPECTED = """\ | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |