Fix tests

This commit is contained in:
Veronica K. B. Olsen committed 2021-02-18 20:47:22 +01:00
1 parent 5f3822ac1a
commit 6cc974a8e9
13 files changed
+23 -19

No files matched your search

+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