diff --git a/test/unittests/osm_tests.py b/test/unittests/osm_tests.py deleted file mode 100644 index f3834842..00000000 --- a/test/unittests/osm_tests.py +++ /dev/null @@ -1,30 +0,0 @@ -# write your first unittest! -import unittest -from os.path import exists -from shutil import rmtree - -from ovos_skills_manager import SkillEntry - -branch = "dev" -url = f"https://github.com/OpenVoiceOS/skill-ovos-date-time@{branch}" - - -class TestOSM(unittest.TestCase): - @classmethod - def setUpClass(self): - self.skill_id = "skill-ovos-date-time.openvoiceos" - - def test_osm_install(self): - skill = SkillEntry.from_github_url(url) - tmp_skills = "/tmp/osm_installed_skills" - skill_folder = f"{tmp_skills}/{skill.uuid}" - - if exists(skill_folder): - rmtree(skill_folder) - - updated = skill.install(folder=tmp_skills, default_branch=branch) - self.assertEqual(updated, True) - self.assertTrue(exists(skill_folder)) - - updated = skill.install(folder=tmp_skills, default_branch=branch) - self.assertEqual(updated, False) diff --git a/test/unittests/test_skill_loading.py b/test/unittests/test_skill_loading.py index abbbb452..3e82b5c9 100644 --- a/test/unittests/test_skill_loading.py +++ b/test/unittests/test_skill_loading.py @@ -4,7 +4,7 @@ from mycroft.skills.skill_loader import PluginSkillLoader, SkillLoader from ovos_plugin_manager.skills import find_skill_plugins from ovos_utils.messagebus import FakeBus -from skill_ovos_date_time import TimeSkill, create_skill +from skill_ovos_date_time import TimeSkill class TestSkillLoading(unittest.TestCase): @@ -20,13 +20,6 @@ def test_from_class(self): self.assertEqual(skill.bus, bus) self.assertEqual(skill.skill_id, self.skill_id) - def test_from_func(self): - bus = FakeBus() - skill = create_skill() - skill._startup(bus, self.skill_id) - self.assertEqual(skill.bus, bus) - self.assertEqual(skill.skill_id, self.skill_id) - def test_from_plugin(self): bus = FakeBus() for skill_id, plug in find_skill_plugins().items():