Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/tests/test_consistency.py
# Copyright (C) 2021-2022 The Software Heritage developers | # Copyright (C) 2021-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 swh.model.hashutil import hash_to_bytes | from swh.model.hashutil import hash_to_bytes | ||||
from swh.provenance.algos.revision import revision_add | |||||
from swh.provenance.archive import ArchiveInterface | from swh.provenance.archive import ArchiveInterface | ||||
from swh.provenance.interface import ProvenanceInterface | from swh.provenance.interface import ProvenanceInterface | ||||
from swh.provenance.model import RevisionEntry | from swh.provenance.model import RevisionEntry | ||||
from swh.provenance.revision import revision_add | |||||
from swh.provenance.storage.interface import DirectoryData, ProvenanceResult | from swh.provenance.storage.interface import DirectoryData, ProvenanceResult | ||||
from swh.provenance.tests.conftest import fill_storage, load_repo_data, ts2dt | from swh.provenance.tests.conftest import fill_storage, load_repo_data, ts2dt | ||||
def test_consistency( | def test_consistency( | ||||
provenance: ProvenanceInterface, | provenance: ProvenanceInterface, | ||||
archive: ArchiveInterface, | archive: ArchiveInterface, | ||||
) -> None: | ) -> None: | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |