示例#1
0
 def test_search_neon_url(self):
     from ovos_skills_manager.scripts.search import search_skill
     # methods = ['all', 'name', 'url', 'category', 'author', 'tag', 'description']
     query = "https://github.com/NeonGeckoCom/caffeinewiz.neon"
     fuzzy = False
     thresh = 80
     results = search_skill(method="url", query=query, fuzzy=fuzzy, no_ignore_case=False,
                            thresh=thresh, appstore="neon")
     self.assertIsInstance(results, list)
     self.assertTrue(len(results) > 0)
示例#2
0
 def test_search_ovos_all(self):
     from ovos_skills_manager.scripts.search import search_skill
     # methods = ['all', 'name', 'url', 'category', 'author', 'tag', 'description']
     query = "launcher"
     fuzzy = True
     thresh = 80
     results = search_skill(method="all", query=query, fuzzy=fuzzy, no_ignore_case=False,
                            thresh=thresh, appstore="ovos")
     self.assertIsInstance(results, list)
     self.assertTrue(len(results) > 0)
示例#3
0
 def test_search_mycroft_url(self):
     from ovos_skills_manager.scripts.search import search_skill
     # methods = ['all', 'name', 'url', 'category', 'author', 'tag', 'description']
     query = "https://github.com/ChanceNCounter/dismissal-skill"
     fuzzy = False
     thresh = 80
     results = search_skill(method="url", query=query, fuzzy=fuzzy, no_ignore_case=False,
                            thresh=thresh, appstore="mycroft")
     self.assertIsInstance(results, list)
     self.assertTrue(len(results) > 0)