mycroft-core/test
Åke ab242a2c82
Handle multiple intents with the same name (#2921)
* Add check for duplicate adapt intents

There are two cases, duplicated named intent and duplicated anonymous intent.

A named intent will cause a ValueError exception notifying the skill
author that there is a collision.

An anonymous intent will silently derive a new name and use that
instead of the default generated one.

* Add tests for intent collisions

* Make enable/disable intent handle the new exception

The enable/disable intent did not mark an intent as detached, instead it
remained in the list of intents after disabling in the IntentServiceInterface
to be retrieved when the intent should be re-enabled.

This moves detached intents into a list of detached intents to so they
won't cause the double enable exception.

* Add move logic to find if intent is detached

MycroftSkill.enable_intent() will now check if the intent is detached
before trying to re-enable it.

* Lock updates of intents

This should avoid some race conditions that may occur if multiple
threads tries to enable / disable intents
2022-11-23 15:52:56 +09:30
..
integrationtests VK simplify dialog matching 2022-01-28 21:48:25 +01:00
unittests Handle multiple intents with the same name (#2921) 2022-11-23 15:52:56 +09:30
wake_word Added duration_to_bytes to FileMockMicrophone (#3071) 2022-02-23 16:08:46 +09:30
Dockerfile Disable auto updates of skills during VK test run 2021-08-06 10:06:05 +02:00
__init__.py __init__.py must be present 2017-08-17 02:05:02 -05:00
util.py Base Mock config on the defualt config 2020-12-01 23:56:15 +11:00