Disable checking spelling in tests on Windows

This commit is contained in:
Veronica Berglyd Olsen
2023-10-17 20:58:57 +02:00
parent b11a3c4bc7
commit 90ca8f481d
+3
View File
@@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
""" """
import sys
import pytest import pytest
from shutil import copyfile from shutil import copyfile
@@ -518,6 +519,8 @@ def testGuiMain_Editing(qtbot, monkeypatch, nwGUI, projPath, tstPaths, mockRnd):
assert docEditor._qDocument.spellErrorAtPos(currPos) == ("", -1, -1, []) assert docEditor._qDocument.spellErrorAtPos(currPos) == ("", -1, -1, [])
errPos = currPos - 13 errPos = currPos - 13
if not sys.platform.startswith("win32"):
# Skip on Windows as spell checking is off there
word, cPos, cLen, suggest = docEditor._qDocument.spellErrorAtPos(errPos) word, cPos, cLen, suggest = docEditor._qDocument.spellErrorAtPos(errPos)
assert word == "tesst" assert word == "tesst"
assert cPos == 15 assert cPos == 15