1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
From: Gunnar Hjalmarsson <gunnarhj@debian.org>
Date: Sat, 4 Feb 2023 19:59:10 +0100
Subject: Skip some tests to prevent FTBFS
Disabled tests due to different dictionaries in Debian:
* test_de_DE_cs_CZ_enchant
* test_en_US
* test_en_US_spellcheck_suggest_enchant
* test_sv_SE (suggestions)
Discussed with upstream here:
https://github.com/mike-fabian/ibus-typing-booster/issues/157
Last-Update: 2024-02-10
Forwarded: not-needed
---
tests/test_hunspell_suggest.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/test_hunspell_suggest.py b/tests/test_hunspell_suggest.py
index d5e4943..b86e108 100755
--- a/tests/test_hunspell_suggest.py
+++ b/tests/test_hunspell_suggest.py
@@ -73,6 +73,8 @@ class HunspellSuggestTestCase(unittest.TestCase):
def test_dummy(self) -> None:
self.assertEqual(True, True)
+ @unittest.skip(
+ "Skipping due to different Czech dictionary in Debian.")
@unittest.skipUnless(
IMPORT_ENCHANT_SUCCESSFUL,
"Skipping because this test requires python3-enchant to work.")
@@ -181,6 +183,8 @@ class HunspellSuggestTestCase(unittest.TestCase):
h.suggest('tenéis')[0],
('tene\u0301is', 0))
+ @unittest.skip(
+ "Skipping due to different en_US dictionary in Debian.")
@unittest.skipUnless(
itb_util.get_hunspell_dictionary_wordlist('en_US')[0],
'Skipping because no US English hunspell dictionary could be found.')
@@ -272,6 +276,8 @@ class HunspellSuggestTestCase(unittest.TestCase):
self.assertEqual(d.spellcheck_enchant('winter'), True)
self.assertEqual(d.spellcheck_enchant('winxer'), False)
+ @unittest.skip(
+ "Skipping due to different en_US dictionary in Debian.")
@unittest.skipUnless(
IMPORT_ENCHANT_SUCCESSFUL,
"Skipping because this test requires python3-enchant to work.")
@@ -341,6 +347,8 @@ class HunspellSuggestTestCase(unittest.TestCase):
d.spellcheck_suggest_voikko('kisssa'),
['kissa', 'kissaa', 'kisassa', 'kisussa', 'Kiassa'])
+ @unittest.skip(
+ "Skipping due to different Swedish dictionary in Debian.")
@unittest.skipUnless(
itb_util.get_hunspell_dictionary_wordlist('sv_SE')[0],
"Skipping because no Swedisch dictionary could be found. ")
|