From ec1c664ed68411998be2c0c8ef8d0c256cb3b1c1 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Fri, 12 Feb 2021 20:15:38 +0100 Subject: [PATCH] Fix test --- tests/test_core/test_core_spell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_core/test_core_spell.py b/tests/test_core/test_core_spell.py index 4a9bde15..90ef0fff 100644 --- a/tests/test_core/test_core_spell.py +++ b/tests/test_core/test_core_spell.py @@ -139,13 +139,13 @@ def testCoreSpell_Simple(monkeypatch, tmpDir, tmpConf): monkeypatch.setattr("builtins.open", causeOSError) spChk.setLanguage("en", wList) assert spChk.spellLanguage is None - assert spChk.WORDS == spChk.projDict + assert spChk.theWords == set(spChk.projDict) monkeypatch.undo() # Load dictionary properly spChk.setLanguage("en", wList) assert spChk.projDict == ["a_word", "b_word", "c_word"] - assert spChk.WORDS == ["e_word", "f_word", "g_word", "a_word", "b_word", "c_word"] + assert spChk.theWords == set(["e_word", "f_word", "g_word", "a_word", "b_word", "c_word"]) # Check words assert spChk.checkWord("a_word")