Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/tests/test_provenance_heuristics.py
# Copyright (C) 2021 The Software Heritage developers | # Copyright (C) 2021 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 typing import Any, Dict, List, Optional, Set, Tuple | from typing import Any, Dict, List, Optional, Set, Tuple | ||||
import pytest | import pytest | ||||
from swh.model.hashutil import hash_to_bytes | from swh.model.hashutil import hash_to_bytes | ||||
from swh.provenance.archive import ArchiveInterface | from swh.provenance.archive import ArchiveInterface | ||||
from swh.provenance.interface import EntityType, ProvenanceInterface, RelationType | |||||
from swh.provenance.model import RevisionEntry | from swh.provenance.model import RevisionEntry | ||||
from swh.provenance.postgresql.provenancedb_base import ProvenanceDBBase | from swh.provenance.postgresql.provenancedb_base import ProvenanceDBBase | ||||
from swh.provenance.provenance import EntityType, ProvenanceInterface, RelationType | |||||
from swh.provenance.revision import revision_add | from swh.provenance.revision import revision_add | ||||
from swh.provenance.tests.conftest import ( | from swh.provenance.tests.conftest import ( | ||||
fill_storage, | fill_storage, | ||||
get_datafile, | get_datafile, | ||||
load_repo_data, | load_repo_data, | ||||
synthetic_result, | synthetic_result, | ||||
) | ) | ||||
from swh.provenance.tests.test_provenance_db import ts2dt | from swh.provenance.tests.test_provenance_db import ts2dt | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |