Fix tests

This commit is contained in:
Veronica K. B. Olsen
2021-02-18 20:47:22 +01:00
parent 5f3822ac1a
commit 6cc974a8e9
13 changed files with 23 additions and 19 deletions
+4 -2
View File
@@ -117,7 +117,8 @@ def testCoreToken_TextOps(monkeypatch, nwMinimal, dummyGUI):
"""
theProject = NWProject(dummyGUI)
theProject.projTree.setSeed(42)
theProject.loadProjectLocalisation("en")
theProject.projLang = "en"
theProject._loadProjectLocalisation()
theToken = Tokenizer(theProject, dummyGUI)
theToken.setKeepMarkdown(True)
@@ -414,7 +415,8 @@ def testCoreToken_Headers(dummyGUI):
"""Test the header and page parser of the Tokenizer class.
"""
theProject = NWProject(dummyGUI)
theProject.loadProjectLocalisation("en")
theProject.projLang = "en"
theProject._loadProjectLocalisation()
theToken = Tokenizer(theProject, dummyGUI)
# Nothing