Fixed syntax error in DummyMain class in tests
This commit is contained in:
@@ -24,4 +24,4 @@ jobs:
|
||||
- name: Check for Syntax Error on Tests
|
||||
run: flake8 tests --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
- name: Check for Code Style on novelWriter
|
||||
run: flake8 nw --count --max-line-length=99 --select E1,E231,E27,E4,E5,E7,E9,W,F --show-source --statistics
|
||||
run: flake8 nw --count --max-line-length=99 --select E1,E231,E27,E4,E5,E7,E9,W,F --show-source --statistics
|
||||
|
||||
@@ -12,19 +12,6 @@ class DummyMain():
|
||||
return
|
||||
|
||||
def makeAlert(self, theMessage, theLevel):
|
||||
if theLevel == nwAlert.WARN:
|
||||
lvlMsg = "WARNING: "
|
||||
elif theLevel == nwAlert.ERROR:
|
||||
lvlMsg = "ERROR: "
|
||||
elif theLevel == nwAlert.BUG:
|
||||
lvlMsg = "BUG: "
|
||||
else:
|
||||
lvlMsg = ""
|
||||
if isinstance(theMessage, list):
|
||||
for msgLine in logMsg:
|
||||
print(lvlMsg+msgLine)
|
||||
else:
|
||||
print(lvlMsg+theMessage)
|
||||
return
|
||||
|
||||
def setStatus(self, theMessage):
|
||||
|
||||
Reference in New Issue
Block a user