Skip to content

Commit

Permalink
test put back
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatrou committed Nov 1, 2024
1 parent 4f6a7da commit da14b19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: hyspecplanningtools_dev
channels:
- conda-forge
- anaconda
dependencies:
- python>=3.10
- pyqt == 5.*
- qtpy
- python>=3.10
#- numpy
#- scipy
#- matplotlib
Expand Down
19 changes: 10 additions & 9 deletions tests/test_mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@

import pytest

from hyspecplanningtools.hyspecplanningtools import __version__
from hyspecplanningtools.hyspecplanningtools import HyspecPlanningTool, __version__
from hyspecplanningtools.mainwindow import MainWindow

# def test_appwindow(qtbot):
# """Test that the application starts successfully"""
# hyspecplanningtools = HyspecPlanningTool()
# hyspecplanningtools.show()
# qtbot.waitUntil(hyspecplanningtools.show, timeout=5000)
# assert hyspecplanningtools.isVisible()
# assert hyspecplanningtools.windowTitle() == f"HyspecPlanning Tools - {__version__}"
# hyspecplanningtools.destroy()

def test_appwindow(qtbot):
"""Test that the application starts successfully"""
hyspecplanningtools = HyspecPlanningTool()
hyspecplanningtools.show()
qtbot.waitUntil(hyspecplanningtools.show, timeout=5000)
assert hyspecplanningtools.isVisible()
assert hyspecplanningtools.windowTitle() == f"HyspecPlanning Tools - {__version__}"
hyspecplanningtools.destroy()


def test_gui_version():
Expand Down

0 comments on commit da14b19

Please sign in to comment.