Spell check comments and docstrings

This commit is contained in:
Veronica Berglyd Olsen
2023-07-20 23:25:49 +02:00
parent e773884c29
commit 4dfa51855e
45 changed files with 122 additions and 175 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ def testBaseCommon_CheckBool():
assert checkBool(0, True) is False
assert checkBool(1, False) is True
# Inalid Integers
# Invalid Integers
assert checkBool(2, True) is True
assert checkBool(2, False) is False
+4 -8
View File
@@ -35,8 +35,7 @@ from novelwriter.constants import nwFiles
@pytest.mark.base
def testBaseConfig_Constructor(monkeypatch):
"""Test config contructor.
"""
"""Test config constructor."""
# Linux
with monkeypatch.context() as mp:
mp.setattr("sys.platform", "linux")
@@ -93,8 +92,7 @@ def testBaseConfig_Constructor(monkeypatch):
@pytest.mark.base
def testBaseConfig_InitLoadSave(monkeypatch, fncPath, tstPaths):
"""Test config intialisation.
"""
"""Test config initialisation."""
tstConf = Config()
confFile = fncPath / nwFiles.CONF_FILE
@@ -159,8 +157,7 @@ def testBaseConfig_InitLoadSave(monkeypatch, fncPath, tstPaths):
@pytest.mark.base
def testBaseConfig_Localisation(fncPath, tstPaths):
"""Test localisation.
"""
"""Test localisation."""
tstConf = Config()
tstConf.initConfig(confPath=fncPath, dataPath=fncPath)
@@ -198,8 +195,7 @@ def testBaseConfig_Localisation(fncPath, tstPaths):
@pytest.mark.base
def testBaseConfig_Methods(fncPath):
"""Check class methods.
"""
"""Check class methods."""
tstConf = Config()
tstConf.initConfig(confPath=fncPath, dataPath=fncPath)
+1 -1
View File
@@ -67,7 +67,7 @@ def testBaseError_Dialog(qtbot, monkeypatch, nwGUI):
def testBaseError_Handler(qtbot, monkeypatch, nwGUI):
"""Test the error handler. This test doesn'thave any asserts, but it
checks that the error handler handles potential exceptions. The test
will fail if excpetions are not handled.
will fail if exceptions are not handled.
"""
# Normal shutdown
with monkeypatch.context() as mp: