replayer_storage_and_client = (<swh.storage.in_memory.InMemoryStorage object at 0x7f56e1463630>, <swh.journal.client.JournalClient object at 0x7f56e146d128>)
caplog = <_pytest.logging.LogCaptureFixture object at 0x7f56e146df28>
def test_storage_replayer(replayer_storage_and_client, caplog):
"""Optimal replayer scenario.
This:
- writes objects to a source storage
- replayer consumes objects from the topic and replays them
- a destination storage is filled from this
In the end, both storages should have the same content.
"""
src, replayer = replayer_storage_and_client
# Fill Kafka using a source storage
nb_sent = 0
for object_type, objects in TEST_OBJECTS.items():
> method = getattr(src, object_type + "_add")
E AttributeError: 'InMemoryStorage' object has no attribute 'extid_add'
.tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_replay.py:74: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Mar 11 2021, 3:13 PM