Kris Gesling
6327ac5dbb
Upgrade Lingua Franca to v0.4.1 ( #2890 )
...
**Update Lingua Franca to v0.4.1**
The update from Lingua Franca v0.2.x to v0.4.x includes few
breaking changes.
- Some API methods have been updated.
- Mycroft-core tests have been updated to reflect improvements in
Lingua Franca's formatting and parsing.
- add LF default lang setting method to config.locale
including warning that this method will change in the future
- Add TODO's for 21.08 - moving more methods to LF
- simplify loading and setting default of languages in Skills service
- Remove unneeded wrappers for Lingua Franca functions
- Fix documentation of format and parse utils
- Fix test warnings
2021-05-08 08:34:02 +09:30
Kris Gesling
dc4c146f69
Fix assigning of queue without existing loader
2021-05-06 10:11:39 +09:30
Kris Gesling
cee879e7a4
Add exact optional param to voc_match
...
This adds the option to require an exact match of vocab. It sourced
from the Playback Control Skill.
2021-03-16 16:05:06 +09:30
Kris Gesling
a399b19fd6
Merge pull request #2849 from forslund/refactor/clean-intent-service
...
Remove intent-service backwards compatibilities
2021-03-11 15:26:26 +09:30
Kris Gesling
3679eb1355
Merge pull request #2838 from forslund/test/get_response-tests
...
get response tests
2021-03-10 23:44:48 +09:30
Åke Forslund
203e1fc740
Remove intent-service backwards compatibility
...
- Remove unused ContextManager import from mycroft.skills.intent_service
- Remove Old 'intent_failure' -> fallback handler
- Remove handling of fallback messages without the fallback_range
parameter
2021-03-07 12:59:59 +01:00
Åke Forslund
d724720b21
Basic tests for get_response based skill methods
...
- get_response
- ask_yesno
- ask_selection
2021-02-14 17:18:20 +01:00
Åke Forslund
53b9e87b21
Move AnyCallable to common location
2021-02-14 14:20:58 +01:00
Åke Forslund
56852594cc
Add test cases for the SkillApi
...
- Tests for the MycroftSkill side implementation
- Tests for the generated SkillApi objects
2021-02-08 07:37:50 +01:00
Åke Forslund
93747a13ed
Remove is_alive and all_loaded registration test
2021-01-28 17:24:21 +01:00
JarbasAI
f1d7141bf2
fix/intent_api ( #2786 )
...
* fix/fix/intent_api
* get active skills
* fix/intent_api
* fix/intent_api
* typos
Co-authored-by: jarbasal <jarbasai@mailfence.com>
2020-12-31 12:56:44 +09:30
Åke Forslund
21425da543
Add test for anonymous AdaptIntent
2020-11-24 11:02:52 +01:00
Kris Gesling
ae72ebd247
Merge pull request #2599 from forslund/refactor/intent-service
...
Refactor intent service
2020-09-23 10:24:16 +09:30
katridi
a185a9a4bf
Issue-2567 - Fixing not initialized dialog_render ( #2685 )
...
Fixes #2567
2020-09-15 22:10:39 +09:30
Åke Forslund
8a8caa555d
Add test cases for the api methods
2020-08-20 14:38:58 +02:00
Kris Gesling
d70c425854
switch deprecated EventEmitter to other classes
2020-08-18 15:58:42 +09:30
Åke Forslund
e93d23f0df
Split out adapt from the intent_service.
2020-08-13 08:12:53 +02:00
Åke Forslund
6edaa58558
set active lang to configured if missing from STT
...
If the STT doesn't send a lang code fallback to configured language
instead of hardcoded en-us
2020-08-10 07:41:44 +02:00
Åke
a0c7ea7caf
Merge pull request #2560 from forslund/refactor/settings-cleanup
...
Refactor settings cleanup
2020-05-31 13:37:34 +02:00
Åke Forslund
e0e5f7fb2f
Add test for cancelling the download timer
2020-05-27 22:08:14 +02:00
Åke Forslund
010562f3e1
Fix remove_fallback()
...
remove_fallback() was mainly created for use internally during shutdown
and required the wrapped callable to be able to remove a handler. This
makes it general, using a mapping to find the wrapper from a handler if
needed. The method now also returns the success/failure status
2020-05-19 10:51:53 +02:00
Åke Forslund
73fd98aee1
Add test cases for adding / removing fallbacks
2020-05-19 10:51:47 +02:00
Åke Forslund
5caf415a15
Add tests for context decorators
2020-05-11 06:50:36 +02:00
Åke Forslund
d1b6db306f
Add test case for sending items added before start
2020-04-20 10:48:24 +02:00
Åke Forslund
6dce1096e3
Test that all skill_id's are processed
...
Including a case where an error occur.
2020-03-15 22:23:16 +01:00
Åke Forslund
58f0ac8b9e
Simplify the converse callings
...
Remove the use of the separate error message and use the wait_for_reply method
to get the converse result. The error message is left to guarantee
compatibility.
2020-03-07 11:11:21 +01:00
Åke Forslund
38267dd676
Add basic test case for the converse method
2020-03-03 21:40:59 +01:00
Chris Veilleux
baf194c556
remove deprecated Settings class and any code in core that references it.
2020-02-27 08:07:07 +01:00
jarbasal
f4a96e6c22
Update Unittests and fix pep8
2020-02-15 15:35:43 +01:00
Åke
47038f575e
Merge pull request #2462 from forslund/test/cqs
...
Tests for CommonQuerySkill
2020-02-07 08:34:18 +01:00
Åke Forslund
1524576a5c
Add test for Audioservice.track_info()
2020-02-05 13:13:17 +01:00
Åke Forslund
322511afae
Add tests for audioservice interface
2020-02-05 13:13:17 +01:00
Åke Forslund
28722e2fa7
Add tests for common play skill
2020-02-05 13:13:17 +01:00
Åke Forslund
dbdc3f1e35
Add tests for CommonQuerySkill
2020-01-26 18:17:33 +01:00
Åke Forslund
2c65e8188c
Add tests for MycroftSkill translate methods
...
Verifies that resources are read from both locale and dialog folders.
Also checks that fallbacks to en-us from other languages works as
expected.
2019-12-29 14:25:09 +01:00
Åke Forslund
a730636866
Add tests for upload queue
2019-12-19 16:27:44 +01:00
Åke
e6385720b3
Merge pull request #2396 from maxbachmann/python2cleanup
...
cleanup python2 unicode
2019-11-27 08:46:20 +01:00
maxbachmann
7a48297132
cleanup python2 unicode
2019-11-26 23:09:32 +01:00
Christian Clauss
a1ff3fb355
Upgrade from pycodestyle to flake8
2019-11-19 23:07:52 +01:00
Åke Forslund
be133c5e64
Add testcase for this specific memory leak
...
Ensure that the event scheduler shutdown removes the all references in
the ThreadedEventEmitter.
2019-10-31 09:53:42 +01:00
Åke Forslund
24d6cf9ea0
Add missing __delitem__ method
...
The delitem method is apparently used, for example by the alarm skill
2019-10-04 20:43:46 +02:00
Åke Forslund
425feb0590
Store correct function for once events
...
The handler was always stored even when the event was a once event and
thus was wrapped in once_wrapper.
This handles the once correctly.
2019-09-30 13:31:53 +02:00
Åke Forslund
fcc4df6351
Clear msm device_skill_state before update/upload
...
Make sure to re-read the device_skill_state from disk before doing
changes so no information is lost.
2019-09-20 08:07:03 +02:00
Åke Forslund
9423f920c4
Update test cases to properly mock the DeviceApi
2019-09-18 08:02:29 +02:00
Åke Forslund
f7c4700343
Remove log checks
2019-09-17 11:24:10 +02:00
Chris Veilleux
9c0c20e96d
added deprecation warning for settingsmeta fields no longer used.
2019-09-17 11:24:10 +02:00
Chris Veilleux
02a6f00b03
new log message indicating that a skill got new settings from the backend
2019-09-17 11:24:10 +02:00
Åke Forslund
30104b58c1
Fix broken tests
...
- Correct settingsmeta upload endpoint
- Remove test for delete settingsmeta endpoint
- Fix usage of Pathlib for python 3.4 and 3.5
2019-09-17 11:24:10 +02:00
Chris Veilleux
b1a63638c1
implemented a stop-gap change to keep the skill API from breaking
2019-09-17 11:24:10 +02:00
Chris Veilleux
5c742d2ed0
complete rethink of how settings and settingsmeta are handled in core.
2019-09-17 11:24:10 +02:00