mycroft-core/test/unittests
Å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
..
api Upgrade from pycodestyle to flake8 2019-11-19 23:07:52 +01:00
audio TTS playback queue singleton (#3055) 2022-03-02 09:59:57 +09:30
client Bugfix/issue 2563 (#2692) 2020-09-22 15:01:01 +09:30
configuration Don't overwrite invalid json in config (#2881) 2022-03-07 10:03:10 +09:30
dialog remove previously deprecated DialogLoader class 2020-08-18 22:56:34 +09:30
enclosure Extend GUI interface unittests 2021-02-04 16:12:22 +09:30
lock Rename to get_temp_path and add docstring 2021-04-30 16:49:59 +09:30
messagebus remove deprecated ThreadedEventEmitter 2020-08-18 16:00:51 +09:30
regex_test Separate tests into unittests and integrationtests 2017-08-17 02:05:02 -05:00
res/text/en-us new code to consolidate TTS cache handling into one module. 2021-03-10 13:38:17 -06:00
skills Handle multiple intents with the same name (#2921) 2022-11-23 15:52:56 +09:30
stt Issue-2516 - Use requests.post kwarg to pass URL params 2020-04-27 03:23:07 -04:00
tts TTS playback queue singleton (#3055) 2022-03-02 09:59:57 +09:30
util [log_format] Add an option to change the log format (#3016) 2021-10-29 14:59:22 +09:30
version Update test to match change 2020-04-02 19:29:31 +02:00
vocab_test Separate tests into unittests and integrationtests 2017-08-17 02:05:02 -05:00
__init__.py Separate tests into unittests and integrationtests 2017-08-17 02:05:02 -05:00
base.py Added licensing headers to files missing them. 2019-08-23 16:07:46 +02:00
mocks.py Move AnyCallable to common location 2021-02-14 14:20:58 +01:00