Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kat Kolman committed Nov 11, 2019
1 parent 5529372 commit f2d64ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uwsift/tests/view/test_export_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def window(tmp_path_factory):
window = Main(config_dir=USER_CONFIG_DIR, workspace_dir=str(d))
window.show()
QTest.qWaitForWindowExposed(window)
QTest.qWaitForWindowActive(window)
return window


Expand Down Expand Up @@ -233,8 +234,7 @@ def test_save_screenshot(fr, fn, overwrite, exp, monkeypatch, window):

def test_cmd_open_export_image_dialog(qtbot, window):
qtbot.addWidget(window)
with qtbot.waitExposed(window):
qtbot.keyClick(window, Qt.Key_I, Qt.ControlModifier)
qtbot.keyClick(window, Qt.Key_I, Qt.ControlModifier)

def check_dialog():
assert window.export_image._screenshot_dialog is not None
Expand Down

0 comments on commit f2d64ad

Please sign in to comment.