Skip to content

Commit

Permalink
QtPrintSupport: Add tests for aliased methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Jan 25, 2022
1 parent 13718ad commit b04af5d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions qtpy/tests/test_qtprintsupport.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Test QtPrintSupport."""
import pytest

from qtpy import QtPrintSupport


Expand All @@ -12,3 +14,19 @@ def test_qtprintsupport():
assert QtPrintSupport.QPrinter is not None
assert QtPrintSupport.QPrinterInfo is not None
assert QtPrintSupport.QPrintPreviewWidget is not None


def test_qpagesetupdialog_exec_():
"""Test qtpy.QtPrintSupport.QPageSetupDialog exec_"""
assert QtPrintSupport.QPageSetupDialog.exec_ is not None


def test_qprintdialog_exec_():
"""Test qtpy.QtPrintSupport.QPrintDialog exec_"""
assert QtPrintSupport.QPrintDialog.exec_ is not None

def test_qprintpreviewwidget_print_(qtbot):
"""Test qtpy.QtPrintSupport.QPrintPreviewWidget print_"""
assert QtPrintSupport.QPrintPreviewWidget.print_ is not None
preview_widget = QtPrintSupport.QPrintPreviewWidget()
preview_widget.print_()

0 comments on commit b04af5d

Please sign in to comment.