Updated and extended the testing of the main function

This commit is contained in:
Veronica K. B. Olsen
2020-12-07 20:00:58 +01:00
parent ee7a5e1681
commit a4ee1e112c
4 changed files with 132 additions and 47 deletions
+10 -4
View File
@@ -13,7 +13,7 @@ class DummyMain():
self.hasProject = True
self.theIndex = None
self.theProject = None
self.statusBar = StatusBar()
self.statusBar = DummyStatusBar()
# Test Variables
self.askResponse = True
@@ -42,6 +42,12 @@ class DummyMain():
def rebuildIndex(self):
return
def closeMain(self):
return "closeMain"
def close(self):
return "close"
# Test Functions
def undo(self):
@@ -52,9 +58,9 @@ class DummyMain():
self.lastAlert = ""
return
# END Class GuiMain
# END Class DummyMain
class StatusBar():
class DummyStatusBar():
def __init__(self):
return
@@ -62,7 +68,7 @@ class StatusBar():
def setStatus(self, theText):
return
# END Class StatusBar
# END Class DummyStatusBar
# =========================================================================== #
# Error Functions