Skip to content

Commit

Permalink
unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 11, 2024
1 parent 2c50258 commit 7fd0b6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unittests/test_wakewords.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"active": True
},
"hey_mycroft": {
"module": "precise",
"module": "ovos-ww-plugin-precise",
"listen": True,
"active": True
}
Expand Down Expand Up @@ -103,7 +103,7 @@ def test_create_hotword(self):
OVOSWakeWordFactory.load_module = mock_load

OVOSWakeWordFactory.create_hotword(config=_TEST_CONFIG)
mock_load.assert_called_once_with("precise", "hey_mycroft",
mock_load.assert_called_once_with("ovos-ww-plugin-precise", "hey_mycroft",
_TEST_CONFIG["hotwords"]
['hey_mycroft'], "en-us", None)

Expand Down Expand Up @@ -148,7 +148,7 @@ def test_load_module(self):
mock_return = Mock()
mock_get_class.return_value = mock_return
module = OVOSWakeWordFactory.load_module(
"precise", "hey_mycroft", _TEST_CONFIG['hotwords']['hey_mycroft'],
"ovos-ww-plugin-precise", "hey_mycroft", _TEST_CONFIG['hotwords']['hey_mycroft'],
'en-us')
mock_get_class.assert_called_once_with(
"hey_mycroft", {"lang": "en-us", "hotwords": {
Expand Down

0 comments on commit 7fd0b6f

Please sign in to comment.