Skip to content

Commit

Permalink
Try to make a universal fix for spell language in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Aug 17, 2022
1 parent ad09432 commit 3f1e7d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def tmpConf(tmpDir):
theConf.initConfig(tmpDir, tmpDir)
theConf.setLastPath("")
theConf.guiLang = "en_GB"
theConf.spellLanguage = "en_US"
return theConf


Expand All @@ -138,6 +139,7 @@ def fncConf(fncDir):
theConf.initConfig(fncDir, fncDir)
theConf.setLastPath("")
theConf.guiLang = "en_GB"
theConf.spellLanguage = "en_US"
return theConf


Expand Down
4 changes: 2 additions & 2 deletions tests/reference/baseConfig_novelwriter.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Main]
timestamp = 2021-12-31 16:45:32
timestamp = 2022-08-17 22:08:50
theme = default
syntax = default_light
icons = typicons_light
Expand Down Expand Up @@ -50,7 +50,7 @@ fmtdoublequote = “, ”
fmtpadbefore =
fmtpadafter =
fmtpadthin = False
spellcheck = en
spellcheck = en_US
showtabsnspaces = False
showlineendings = False
showmultispaces = True
Expand Down
1 change: 1 addition & 0 deletions tests/test_base/test_base_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def testBaseConfig_Init(monkeypatch, tmpDir, fncDir, outDir, refDir, filesDir):
"""Test config intialisation.
"""
tstConf = Config()
tstConf.spellLanguage = "en_US"

confFile = os.path.join(tmpDir, "novelwriter.conf")
testFile = os.path.join(outDir, "baseConfig_novelwriter.conf")
Expand Down

0 comments on commit 3f1e7d0

Please sign in to comment.