Skip to content

Commit

Permalink
remove qt tests in dry mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed Feb 14, 2024
1 parent 1e6962e commit a59e71e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/issues/issue_905.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from PyQt5 import Qt
from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
from vedo import Plotter, Cone, printc
from vedo import Plotter, Cone, printc, settings


class MainWindow(Qt.QMainWindow):
Expand Down Expand Up @@ -53,6 +53,8 @@ def onClick(self):


if __name__ == "__main__":
if settings.dry_run_mode:
sys.exit()
app = Qt.QApplication(sys.argv)
window = MainWindow()
app.exec_()
4 changes: 3 additions & 1 deletion tests/issues/issue_946.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication, QFrame, QVBoxLayout
from vtkmodules.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
from vedo import dataurl, Volume
from vedo import dataurl, Volume, settings
from vedo.applications import Slicer3DPlotter


Expand Down Expand Up @@ -49,6 +49,8 @@ def onClose(self):


if __name__ == "__main__":
if settings.dry_run_mode:
exit()
app = QApplication(sys.argv)
window = MainWindow()
app.aboutToQuit.connect(window.onClose)
Expand Down

0 comments on commit a59e71e

Please sign in to comment.