Skip to content

Commit

Permalink
comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
vigji committed Feb 18, 2021
1 parent fe9e121 commit 95d08d8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,27 @@ def accept(self):


def test_main(qtbot, temp_path):

st = State()
style = qdarkstyle.load_stylesheet_pyqt5()
main_window = MainWindow(st, style)
# icon_dir = (Path(__file__).parents[0]).resolve() / "icons/main_icon.png"
main_window.show()
qtbot.wait(300)
# for i in [1, 2, 3, 1, 0]:

# go to calibration and volumetric mode:
main_window.wid_status.setCurrentIndex(1)
qtbot.wait(300)
main_window.wid_status.setCurrentIndex(3)

# Manually update new directory (to avoid nasty pop up window for filesystem):
st.save_settings.save_dir = str(temp_path)
main_window.wid_save_options.set_locationbutton()
st.send_scansave_settings()

# Wait to send and receive parameters:
qtbot.wait(10000)

qtbot.mouseClick(main_window.toolbar.experiment_toggle_btn, Qt.LeftButton, delay=1)

# wait end of the experiment:
qtbot.wait(TriggerSettings().experiment_duration + 5000)

Expand Down

0 comments on commit 95d08d8

Please sign in to comment.