Skip to content

Commit 41e805b

Browse files
committed
Fix missing Annotation.__repr__() test coverage
Not sure how this was passing coverage before but it's not now.
1 parent f5d9ad4 commit 41e805b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/h/models/annotation_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ def test_uuid(factories):
250250
assert annotation.uuid == UUID(URLSafeUUID.url_safe_to_hex(annotation.id))
251251

252252

253+
def test_repr(factories):
254+
annotation = factories.Annotation()
255+
256+
assert repr(annotation) == f"<Annotation {annotation.id}>"
257+
258+
253259
@pytest.fixture
254260
def markdown_render(patch):
255261
return patch("h.models.annotation.markdown_render")

0 commit comments

Comments
 (0)