Commit b3f609c2 authored by Thomas Dowrick's avatar Thomas Dowrick

Issue #10: Add tests using pytest-qt for videolag and aruco

parent 2d24dc8f
......@@ -13,4 +13,5 @@ sphinx
sphinx_rtd_theme
pyinstaller
pytest
pytest-qt
tox
......@@ -9,7 +9,6 @@ from PySide2 import QtCore, QtWidgets, QtGui
from PySide2.QtCore import Slot
import sksurgeryutils.utils.image_utils as iu
# pylint: disable=too-many-instance-attributes
class DemoGui(QtWidgets.QWidget):
......
......@@ -2,10 +2,20 @@
"""sksurgeryarucotest tests"""
from sksurgeryutils.ui.sksurgerycharucotest_demo import run_demo
from sksurgeryutils.ui.sksurgerycharucotest_demo import CharucoDemoGui
import pytest
def test_sksurgeryarucotest(qtbot):
""" Basic test to run the widget and make sure everything loads OK."""
def test_sksurgeryarucotest():
# placeholder for now.
assert True
camera = 0
x = 640
y = 480
rows = 10
columns = 13
dictionary = 2
widget = CharucoDemoGui(camera, x, y, rows, columns, dictionary)
widget.show()
qtbot.addWidget(widget)
......@@ -2,10 +2,18 @@
"""sksurgeryvideolag tests"""
from sksurgeryutils.ui.sksurgeryvideolag_demo import run_demo
from sksurgeryutils.ui.sksurgeryvideolag_demo import DemoGui
import pytest
def test_sksurgeryvideolag():
# placeholder for now.
assert True
def test_sksurgeryvideolag(qtbot):
""" Basic test to run the widget and make sure everything loads OK."""
camera = 0
x = 640
y = 480
grab = 33
milliseconds = 15
gui = DemoGui(camera, x, y, grab, milliseconds)
gui.show()
qtbot.addWidget(gui)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment