Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Jul 29, 2023
1 parent 98a3178 commit dd5aaa9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,11 +1013,12 @@ def test_annotation_builder_popup(caplog):
)

assert caplog.text == ""
AnnotationBuilder.popup(
rect=(50, 550, 200, 650),
open=True,
parent=True, # broken parameter # type: ignore
)
with pytest.warns(DeprecationWarning):
AnnotationBuilder.popup(
rect=(50, 550, 200, 650),
open=True,
parent=True, # broken parameter # type: ignore
)
assert "Unregistered Parent object : No Parent field set" in caplog.text

writer.add_annotation(writer.pages[0], popup_annotation)
Expand Down

0 comments on commit dd5aaa9

Please sign in to comment.