Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/tests/conftest.py
Show All 36 Lines | |||||
) | ) | ||||
from swh.deposit.parsers import parse_xml | from swh.deposit.parsers import parse_xml | ||||
from swh.deposit.tests.common import ( | from swh.deposit.tests.common import ( | ||||
create_arborescence_archive, | create_arborescence_archive, | ||||
post_archive, | post_archive, | ||||
post_atom, | post_atom, | ||||
) | ) | ||||
from swh.model.hashutil import hash_to_bytes | from swh.model.hashutil import hash_to_bytes | ||||
from swh.model.identifiers import CoreSWHID, ObjectType, QualifiedSWHID | from swh.model.swhids import CoreSWHID, ObjectType, QualifiedSWHID | ||||
from swh.scheduler import get_scheduler | from swh.scheduler import get_scheduler | ||||
if TYPE_CHECKING: | if TYPE_CHECKING: | ||||
from swh.deposit.models import Deposit, DepositClient, DepositCollection | from swh.deposit.models import Deposit, DepositClient, DepositCollection | ||||
# mypy is asked to ignore the import statement above because setup_databases | # mypy is asked to ignore the import statement above because setup_databases | ||||
# is not part of the d.t.utils.__all__ variable. | # is not part of the d.t.utils.__all__ variable. | ||||
▲ Show 20 Lines • Show All 555 Lines • Show Last 20 Lines |