From 606aad4945ebbbb58aa5ff42294f509d76de5802 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 09:35:50 +0000 Subject: [PATCH 1/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From bf863c13c036b7a5e2488b3e08e4911dfccd2af8 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Sun, 15 Dec 2024 15:27:10 +0530 Subject: [PATCH 2/6] Add tmt CI testcase --- .fmf/version | 1 + plans/hunspell-it.fmf | 5 +++++ tests/test_dic_availability.fmf | 6 ++++++ tests/test_dic_availability.py | 10 ++++++++++ tests/test_suggest_words.fmf | 6 ++++++ tests/test_suggest_words.py | 9 +++++++++ 6 files changed, 37 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/hunspell-it.fmf create mode 100644 tests/test_dic_availability.fmf create mode 100644 tests/test_dic_availability.py create mode 100644 tests/test_suggest_words.fmf create mode 100644 tests/test_suggest_words.py diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/hunspell-it.fmf b/plans/hunspell-it.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/hunspell-it.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/test_dic_availability.fmf b/tests/test_dic_availability.fmf new file mode 100644 index 0000000..995bee1 --- /dev/null +++ b/tests/test_dic_availability.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-it +test: python3 test_dic_availability.py +framework: shell + diff --git a/tests/test_dic_availability.py b/tests/test_dic_availability.py new file mode 100644 index 0000000..caf897d --- /dev/null +++ b/tests/test_dic_availability.py @@ -0,0 +1,10 @@ +#!/usr/bin/python3 + +import enchant + +lang = "it_IT" +try: + dic = enchant.request_dict(lang) + print("Dictionary for {0} language is available for use".format(lang)) +except enchant.errors.DictNotFoundError: + print("Dictionary is not installed for use") diff --git a/tests/test_suggest_words.fmf b/tests/test_suggest_words.fmf new file mode 100644 index 0000000..7030c2f --- /dev/null +++ b/tests/test_suggest_words.fmf @@ -0,0 +1,6 @@ +require: +- python3-enchant +- hunspell-it +test: python3 test_suggest_words.py +framework: shell + diff --git a/tests/test_suggest_words.py b/tests/test_suggest_words.py new file mode 100644 index 0000000..a289d3d --- /dev/null +++ b/tests/test_suggest_words.py @@ -0,0 +1,9 @@ +#!/usr/bin/python3 + +import enchant + +wdlst = [ "ciao", "tè", "mattina"] +dic = enchant.Dict("it_IT") +for wd in wdlst: + dic.check(wd) + print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd))) From 7e7adebd6cbaeca233b2f9d977dce95617bc6219 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 06:18:32 +0000 Subject: [PATCH 3/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 7c8bdae2a9f38c9ed18f6e933df157bb08a18044 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 17:13:32 +0000 Subject: [PATCH 4/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From a9bdf7cccbc2347d7d5e3193d02e3feec89ad7a6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 16:20:21 +0000 Subject: [PATCH 5/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild From c786b250786ad3360dddebe2b712a941dc8728c0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jul 2026 03:27:55 +0000 Subject: [PATCH 6/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild