Skip to content

Commit

Permalink
chore: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Jun 6, 2023
1 parent 3e17421 commit 3a810d9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/test_printsupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,26 @@ def test_printer():
assert printer.get_pdf_version() == "v1_6"
with pytest.raises(InvalidParamError):
printer.set_pdf_version("test")


def test_printdialog():
dlg = printsupport.PrintDialog()
assert dlg is not None


def test_pagesetupdialog():
dlg = printsupport.PageSetupDialog()
assert dlg is not None


def test_printpreviewdialog():
dlg = printsupport.PrintPreviewDialog()
assert dlg is not None


def test_printpreviewwidget():
widget = printsupport.PrintPreviewWidget()
widget.set_view_mode("facing_pages")
assert widget.get_view_mode() == "facing_pages"
widget.set_zoom_mode("fit_to_width")
assert widget.get_zoom_mode() == "fit_to_width"

0 comments on commit 3a810d9

Please sign in to comment.