Skip to content

Commit

Permalink
dont care about old mycroft-core anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 29, 2023
1 parent 94fc417 commit 24e066f
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 460 deletions.
14 changes: 0 additions & 14 deletions ovos_plugin_common_play/ocp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from ovos_bus_client.message import Message
from ovos_workshop import OVOSAbstractApplication
from padacioso import IntentContainer
from ovos_utils.intents.intent_service_interface import IntentQueryApi
from threading import Event, Lock


Expand Down Expand Up @@ -104,19 +103,6 @@ def handle_home(self, message=None):
def register_ocp_intents(self, message=None):
with self._intent_registration_lock:
if not self._intents_event.is_set():
missing = True
LOG.debug("Intents register event not set")
else:
# check list of registered intents
# if needed register ocp intents again
# this accounts for restarts etc
i = IntentQueryApi(self.bus)
intents = i.get_padatious_manifest()
missing = not any((e.startswith(f"{self.skill_id}:")
for e in intents))
LOG.debug(f'missing={missing} | {intents}')

if missing:
LOG.info(f"OCP intents missing, registering for {self}")
self.register_intent("play.intent", self.handle_play)
self.register_intent("read.intent", self.handle_read)
Expand Down
5 changes: 0 additions & 5 deletions test/unittests/ovos_tskill_mycroft_cps/README.md

This file was deleted.

180 changes: 0 additions & 180 deletions test/unittests/ovos_tskill_mycroft_cps/__init__.py

This file was deleted.

Empty file.
4 changes: 0 additions & 4 deletions test/unittests/ovos_tskill_mycroft_cps/locale/en-us/Music.voc

This file was deleted.

2 changes: 0 additions & 2 deletions test/unittests/ovos_tskill_mycroft_cps/locale/en-us/Next.voc

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions test/unittests/ovos_tskill_mycroft_cps/locale/en-us/Play.voc

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions test/unittests/ovos_tskill_mycroft_cps/locale/en-us/Prev.voc

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions test/unittests/ovos_tskill_mycroft_cps/locale/en-us/Track.voc

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions test/unittests/ovos_tskill_mycroft_cps/locale/en-us/phrase.rx

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions test/unittests/ovos_tskill_mycroft_cps/setup.py

This file was deleted.

10 changes: 6 additions & 4 deletions test/unittests/test_audio_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import unittest
from unittest.mock import patch

from ovos_utils.skills.audioservice import ClassicAudioServiceInterface
from ovos_audio.service import AudioService
from ovos_config.config import Configuration
from ovos_utils.messagebus import FakeBus

Expand Down Expand Up @@ -49,7 +49,7 @@ def get_msg(msg):

self.bus.on("message", get_msg)

self.audio = ClassicAudioServiceInterface(self.bus)
self.audio = AudioService(self.bus)

def test_native_ocp(self):
# assert that OCP is the selected default backend
Expand All @@ -66,8 +66,10 @@ def test_native_ocp(self):
# NOTE: "service" is a list, should be named "services"
# not renamed for backwards compat but its a typo!
loaded_services = [s.name for s in self.audio.service]
self.assertIn("mycroft_test", loaded_services)
self.assertIn("ovos_test", loaded_services)
self.assertIn("OCP", loaded_services)
# TODO fix me, add dummy plugins
#self.assertIn("mycroft_test", loaded_services)
#self.assertIn("ovos_test", loaded_services)

def tearDown(self) -> None:
self.audio.shutdown()
Expand Down
Loading

0 comments on commit 24e066f

Please sign in to comment.