Changeset View
Changeset View
Standalone View
Standalone View
swh/journal/tests/test_write_replay.py
# Copyright (C) 2019-2020 The Software Heritage developers | # Copyright (C) 2019-2020 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 | ||||
import functools | import functools | ||||
from unittest.mock import patch | from unittest.mock import patch | ||||
import attr | import attr | ||||
from hypothesis import given, settings, HealthCheck | from hypothesis import given, settings, HealthCheck | ||||
from hypothesis.strategies import lists | from hypothesis.strategies import lists | ||||
from swh.model.hypothesis_strategies import ( | from swh.model.hypothesis_strategies import ( | ||||
object_dicts, present_contents | object_dicts, present_contents | ||||
) | ) | ||||
from swh.model.model import Origin | from swh.model.model import Origin | ||||
from swh.storage import get_storage, HashCollision | from swh.storage import get_storage | ||||
from swh.storage.exc import HashCollision | |||||
from swh.journal.replay import ( | from swh.journal.replay import ( | ||||
process_replay_objects, process_replay_objects_content, object_converter_fn | process_replay_objects, process_replay_objects_content, object_converter_fn | ||||
) | ) | ||||
from .utils import MockedJournalClient, MockedKafkaWriter | from .utils import MockedJournalClient, MockedKafkaWriter | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |