Tests: UI tests can now load projects from tests/projects wxPython4
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 10 Nov 2022 19:36:30 +0100
branchwxPython4
changeset 3669 ca25c686cd97
parent 3668 142c268124ab
child 3670 cfb2b05b68c4
Tests: UI tests can now load projects from tests/projects
tests/ide_tests/sikuliberemiz.py
--- a/tests/ide_tests/sikuliberemiz.py	Thu Nov 10 19:34:44 2022 +0100
+++ b/tests/ide_tests/sikuliberemiz.py	Thu Nov 10 19:36:30 2022 +0100
@@ -189,7 +189,7 @@
         return res
 
 class BeremizApp(IDEIdleObserver, stdoutIdleObserver):
-    def __init__(self, projectpath=None, exemple=None):
+    def __init__(self, projectpath=None, exemple=None, testproject=None):
         """
         Starts Beremiz IDE, waits for main window to appear, maximize it.
 
@@ -224,6 +224,9 @@
             command.append(opj(beremiz_path,"exemples",exemple))
         elif projectpath is not None:
             command.append(projectpath)
+        elif testproject is not None:
+            command.append(opj(beremiz_path,"tests","projects",testproject))
+
 
         # App class is broken in Sikuli 2.0.5: can't start process with arguments.
         #