#1 Added CI tests
Merged 4 years ago by pnemade. Opened 4 years ago by pnemade.
Unknown source master  into  master

@@ -0,0 +1,4 @@

+ #!/bin/bash

+ 

+ python3 test_suggest_words.py

+ python3 test_dic_availability.py

@@ -0,0 +1,10 @@

+ #!/usr/bin/python3

+ 

+ import enchant

+ 

+ lang = "ne_NP"

+ 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")

@@ -0,0 +1,9 @@

+ #!/usr/bin/python3

+ 

+ import enchant

+ 

+ wdlst = [ "नमस", "अभि", "यथात"]

+ dic = enchant.Dict("ne_NP")

+ for wd in wdlst:

+     dic.check(wd)

+     print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))

file added
+11
@@ -0,0 +1,11 @@

+ - hosts: localhost

+   roles:

+     - role: standard-test-basic

+       required_packages:

+       - python3-enchant

+       tags:

+         - classic

+       tests:

+         - sample:

+             dir: scripts/

+             run: ./run_tests.sh