Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/tests/test_provenance_db_storage.py
- This file was added.
# Copyright (C) 2021 The Software Heritage developers | |||||
# See the AUTHORS file at the top-level directory of this distribution | |||||
# License: GNU General Public License version 3, or any later version | |||||
# See top-level LICENSE file for more information | |||||
import pytest | |||||
from swh.provenance.storage.archive import ArchiveStorage | |||||
from .test_provenance_db import ( # noqa | |||||
test_provenance_add_revision, | |||||
test_provenance_content_find_first, | |||||
test_provenance_db, | |||||
) | |||||
vlorentz: why not `import *`? | |||||
Not Done Inline Actionsthere are only 3 tests in there so far so my guess is it was to avoid the noqa (but then david may have forgotten to remove it) ardumont: there are only 3 tests in there so far so my guess is it was to avoid the noqa (but then david… | |||||
Done Inline Actionsin both cases the noqa is mandatory (otherwise flake8 complains about unused imported stuff) douardda: in both cases the noqa is mandatory (otherwise flake8 complains about unused imported stuff) | |||||
@pytest.fixture | |||||
def archive(swh_storage_with_objects): | |||||
"""Return a ArchiveStorage based StorageInterface object""" | |||||
archive = ArchiveStorage(swh_storage_with_objects) | |||||
yield archive |
why not import *?