diff --git a/.github/workflows/syntax.yml b/.github/workflows/syntax.yml index 9ed8ef17..f75369fe 100644 --- a/.github/workflows/syntax.yml +++ b/.github/workflows/syntax.yml @@ -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 diff --git a/tests/nwdummy.py b/tests/nwdummy.py index 2e46352c..a6460c99 100644 --- a/tests/nwdummy.py +++ b/tests/nwdummy.py @@ -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):