Resolves:rhbz#1967646 - Correct the License: tag to LGPLv3+ based on LICENSE.txt file
Added gating tests
This commit is contained in:
parent
a675261928
commit
6ae5f0df93
@ -1,10 +1,10 @@
|
||||
Name: hunspell-eu
|
||||
Summary: Basque hunspell dictionaries
|
||||
Version: 5.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Source0: http://xuxen.eus/static/hunspell/xuxen_%{version}_hunspell.zip
|
||||
URL: http://xuxen.eus
|
||||
License: GPLv3
|
||||
License: LGPLv3+
|
||||
BuildArch: noarch
|
||||
|
||||
Requires: hunspell
|
||||
@ -29,6 +29,10 @@ cp -p eu_ES.aff %{buildroot}%{_datadir}/myspell/eu_ES.aff
|
||||
%{_datadir}/myspell/*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 03 2021 Parag Nemade <pnemade AT redhat DOT com> - 5.1-3
|
||||
- Resolves:rhbz#1967646 - Correct the License: tag to LGPLv3+ based on LICENSE.txt file
|
||||
- Added gating tests
|
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 5.1-2
|
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||
|
||||
|
||||
4
tests/scripts/run_tests.sh
Normal file
4
tests/scripts/run_tests.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
python3 test_suggest_words.py
|
||||
python3 test_dic_availability.py
|
||||
10
tests/scripts/test_dic_availability.py
Normal file
10
tests/scripts/test_dic_availability.py
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
lang = "eu_ES"
|
||||
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")
|
||||
11
tests/scripts/test_suggest_words.py
Normal file
11
tests/scripts/test_suggest_words.py
Normal file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import enchant
|
||||
|
||||
wdlst = [ "Namak", "bidea", "Chait"]
|
||||
dic = enchant.Dict("eu_ES")
|
||||
for wd in wdlst:
|
||||
dic.check(wd)
|
||||
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))
|
||||
|
||||
|
||||
14
tests/tests.yml
Normal file
14
tests/tests.yml
Normal file
@ -0,0 +1,14 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
required_packages:
|
||||
- python3-enchant
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- sample:
|
||||
dir: scripts/
|
||||
run: ./run_tests.sh
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user