Skip to content

Commit

Permalink
test_resize_dialog: added simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Nov 23, 2023
1 parent 36213b7 commit 416f12d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions plotpy/tests/widgets/test_resize_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# guitest: show

import pytest
from guidata.qthelpers import qt_app_context
from guidata.qthelpers import exec_dialog, qt_app_context
from qtpy.QtCore import Qt

from plotpy.widgets.resizedialog import ResizeDialog
Expand Down Expand Up @@ -60,7 +60,12 @@ def test_resize_dialog_qtbot_reject(qtbot):
assert dialog.keep_original_size is False


if __name__ == "__main__":
def simple_test():
"""ResizeDialog simple test"""
with qt_app_context():
dialog = ResizeDialog(None, (150, 100), (300, 250), "Enter the new size:")
dialog.exec()
exec_dialog(dialog)


if __name__ == "__main__":
simple_test()

0 comments on commit 416f12d

Please sign in to comment.