Skip to content

Commit 5a21956

Browse files
authored
Merge pull request #358 from capocchi/version-5.1
bug fix
2 parents 7e7f576 + 41160e0 commit 5a21956

25 files changed

Lines changed: 68 additions & 68 deletions

tests/ApplicationController.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,4 @@ def RunTest(self, frame=None, show=True):
187187
def OnClose(self, event):
188188
""" Close the application.
189189
"""
190-
self.ExitMainLoop() # Quitte proprement la boucle
190+
self.ExitMainLoop() # Quitte proprement la boucle

tests/all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
print(f"{test_file} testing...")
2323
subprocess.call(['python', test_file] + args)
2424

25-
print("All tests executed")
25+
print("All tests executed!")

tests/test_aiprompterdialog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
33
Usage:
44
python test_aiprompterdialog.py --autoclose
5-
python test_aiprompterdialog.py --autoclose 10 # Sleep time before closing frame is 10s
5+
python test_aiprompterdialog.py --autoclose 10 # Auto-close after 10s delay
66
"""
77

88
from ApplicationController import TestApp
99

10-
# import after ApplicationController that init sys.path ot avoid this import
10+
# import after ApplicationController that inits sys.path ot avoid this import
1111
from AIPrompterDialog import AIPrompterDialog
1212

1313
# Crée un objet d'adaptateur fictif (à remplacer par votre propre logique)
@@ -24,4 +24,4 @@ def generate_output(self, full_prompt):
2424
# Run the test
2525
app = TestApp(0)
2626
frame = AIPrompterDialog(None, 'Test', demo_code, DummyAdapter())
27-
app.RunTest(frame)
27+
app.RunTest(frame)

tests/test_checkergui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
33
Usage:
44
python test_checkergui.py --autoclose
5-
python test_checkergui.py --autoclose 10 # Sleep time before closing frame is 10s
5+
python test_checkergui.py --autoclose 10 # Auto-close after 10s delay
66
"""
77

88
from ApplicationController import TestApp
99

10-
# import after ApplicationController that init sys.path ot avoid this import
10+
# import after ApplicationController that inits sys.path ot avoid this import
1111
from CheckerGUI import CheckerGUI
1212

1313
# Some input data to test case
@@ -71,4 +71,4 @@
7171
# Run the test
7272
app = TestApp(0)
7373
frame = CheckerGUI(None, "Test", musicdata)
74-
app.RunTest(frame)
74+
app.RunTest(frame)

tests/test_connectdialog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
33
Usage:
44
python test_connectdialog.py --autoclose
5-
python test_connectdialog.py --autoclose 10 # Sleep time before closing frame is 10s
5+
python test_connectdialog.py --autoclose 10 # Auto-close after 10s delay
66
"""
77

88
from ApplicationController import TestApp
99

10-
# import after ApplicationController that init sys.path ot avoid this import
10+
# import after ApplicationController that inits sys.path ot avoid this import
1111
from ConnectDialog import ConnectDialog
1212

1313
# Run the test
1414
app = TestApp(0)
1515
frame = ConnectDialog(None, -1, 'Test')
16-
app.RunTest(frame)
16+
app.RunTest(frame)

tests/test_detachedframe.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
33
Usage:
44
python test_detachedframe.py --autoclose
5-
python test_detachedframe.py --autoclose 10 # Sleep time before closing frame is 10s
5+
python test_detachedframe.py --autoclose 10 # Auto-close after 10s delay
66
"""
77

88
from ApplicationController import TestApp
99

10-
# import after ApplicationController that init sys.path ot avoid this import
10+
# import after ApplicationController that inits sys.path ot avoid this import
1111
import Container
1212
from DetachedFrame import DetachedFrame
1313

1414
# Run the test
1515
app = TestApp(0)
1616
diagram = Container.Diagram()
1717
frame = DetachedFrame(None, -1, "Test", diagram)
18-
app.RunTest(frame)
18+
app.RunTest(frame)

tests/test_diagramconstantsdialog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
44
Usage:
55
python test_diagramconstantsdialog.py --autoclose
6-
python test_diagramconstantsdialog.py --autoclose 10 # Sleep time before closing frame is 10s
6+
python test_diagramconstantsdialog.py --autoclose 10 # Auto-close after 10s delay
77
"""
88

99
from ApplicationController import TestApp
1010

11-
# import after ApplicationController that init sys.path ot avoid this import
11+
# import after ApplicationController that inits sys.path ot avoid this import
1212
from DiagramConstantsDialog import DiagramConstantsDialog
1313

1414
# Run the test
1515
app = TestApp(0)
1616
diag = DiagramConstantsDialog(None, -1, "Test")
17-
app.RunTest(diag)
17+
app.RunTest(diag)

tests/test_draglist.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
33
Usage:
44
python test_draglist.py --autoclose
5-
python test_draglist.py --autoclose 10 # Sleep time before closing frame is 10s
5+
python test_draglist.py --autoclose 10 # Auto-close after 10s delay
66
"""
77

88
from random import choice
99
import wx
1010

1111
from ApplicationController import TestApp
1212

13-
# import after ApplicationController that init sys.path ot avoid this import
13+
# import after ApplicationController that inits sys.path ot avoid this import
1414
from DragList import DragList
1515

1616
items = ['Foo', 'Bar', 'Baz', 'Zif', 'Zaf', 'Zof']
@@ -36,4 +36,4 @@
3636
dl2.SetItem(idx, 1, choice(items))
3737
dl2.SetItem(idx, 2, choice(items))
3838

39-
app.RunTest(frame)
39+
app.RunTest(frame)

tests/test_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
Usage:
44
python test_editor.py --autoclose
5-
python test_editor.py --autoclose 10 # Sleep time before closing frame is 10s
5+
python test_editor.py --autoclose 10 # Auto-close after 10s delay
66
"""
77

88
from tempfile import gettempdir

tests/test_findgui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
33
Usage:
44
python test_findgui.py --autoclose
5-
python test_findgui.py --autoclose 10 # Sleep time before closing frame is 10s
5+
python test_findgui.py --autoclose 10 # Auto-close after 10s delay
66
"""
77

88
from ApplicationController import TestApp
99

10-
# import after ApplicationController that init sys.path ot avoid this import
10+
# import after ApplicationController that inits sys.path ot avoid this import
1111
from FindGUI import FindReplace
1212

1313
# Run the test
1414
app = TestApp(0)
1515
frame = FindReplace(None, -1, 'Test')
16-
app.RunTest(frame)
16+
app.RunTest(frame)

0 commit comments

Comments
 (0)