Changeset View
Changeset View
Standalone View
Standalone View
swh/journal/tests/test_inmemory.py
- This file was added.
import pytest | |||||
from swh.journal.writer import model_object_dict_sanitizer | |||||
from swh.journal.writer.inmemory import InMemoryJournalWriter | |||||
from swh.model.model import BaseModel | |||||
def test_write_addition_errors_without_unique_key(): | |||||
writer = InMemoryJournalWriter[BaseModel]( | |||||
ardumont: Add a docstring to explicit what the test is about.
I had to follow through the linked task… | |||||
Not Done Inline ActionsNo need for the docstring if you rename it test_write_addition_errors_without_unique_key vlorentz: No need for the docstring if you rename it `test_write_addition_errors_without_unique_key` | |||||
value_sanitizer=model_object_dict_sanitizer | |||||
) | |||||
with pytest.raises(NotImplementedError): | |||||
writer.write_addition("BaseModel", BaseModel()) |
Add a docstring to explicit what the test is about.
I had to follow through the linked task then the linked diff
from the task to start understanding what this is about.
My docstring suggestion is rather technical but nothing better comes to mind so...
@vlorentz might have a better one though ;)