Skip to content

Commit

Permalink
keep your crappy test
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jun 6, 2024
1 parent bca0f9b commit ba9067d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions ovos_plugin_common_play/ocp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,11 @@ def register_ocp_intents(self, message=None):
# trigger a presence announcement from all loaded ocp skills
self.bus.emit(Message("ovos.common_play.skills.get"))

def register_media_intents(self, force=False):
def register_media_intents(self):
"""
NOTE: uses the same format as mycroft .intent files, language
support is handled the same way
"""
if not force and self.using_new_pipeline:
LOG.debug("skipping Classic OCP media type intents registration")
return

locale_folder = join(dirname(__file__), "res", "locale", self.lang)
intents = self.intent2media
if self.settings.get("adult_content", False):
Expand Down
2 changes: 1 addition & 1 deletion test/unittests/test_ocp.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_classify_media(self):
movie = "play a movie"
news = "play the latest news"
unknown = "play something"
self.ocp.register_media_intents(force=True)
self.ocp.register_media_intents()
self.assertEqual(self.ocp.classify_media(music), MediaType.MUSIC)
self.assertEqual(self.ocp.classify_media(movie), MediaType.MOVIE)
self.assertEqual(self.ocp.classify_media(news), MediaType.NEWS)
Expand Down

0 comments on commit ba9067d

Please sign in to comment.