Skip to content

Commit

Permalink
Fix coverage gap in AnnotationWriteService
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Sep 29, 2023
1 parent 29cdd4f commit ac9c323
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/h/services/annotation_write_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ def test_hide_does_not_modify_an_already_hidden_annotation(self, annotation, svc
# It's the same one not a new one
assert annotation.moderation == moderation

def test_unhide(self, annotation, svc):
moderation = AnnotationModeration()
annotation.moderation = moderation

svc.unhide(annotation)

assert not annotation.is_hidden

@pytest.fixture
def create_data(self, factories):
user = factories.User()
Expand Down

0 comments on commit ac9c323

Please sign in to comment.