Skip to content

Commit

Permalink
unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 19, 2023
1 parent 2aff7fc commit beee9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/unittests/skills/test_active.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ActiveSkillExample(ActiveSkill):

def make_active(self):
self.active()
ActiveSkill.make_active(self)
ActiveSkill.activate(self)


class TestActiveSkill(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions test/unittests/test_skill_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ def test_load_skill_module(self):
def test_get_skill_class(self):
from ovos_workshop.skill_launcher import get_skill_class, \
load_skill_module
from ovos_workshop.skills.mycroft_skill import _SkillMetaclass
from ovos_workshop.skills.ovos import _OVOSSkillMetaclass
test_path = join(dirname(__file__), "ovos_tskill_abort",
"__init__.py")
skill_id = "test_skill.test"
module = load_skill_module(test_path, skill_id)
skill = get_skill_class(module)
self.assertIsNotNone(skill)
self.assertEqual(skill.__class__, _SkillMetaclass, skill.__class__)
self.assertEqual(skill.__class__, _OVOSSkillMetaclass, skill.__class__)

# Test invalid request
with self.assertRaises(ValueError):
Expand Down

0 comments on commit beee9dd

Please sign in to comment.