Commit Graph

478 Commits (5bfe8694249e4a4c37a4da4c9887945dd7a4b3e5)

Author SHA1 Message Date
Åke Forslund 4a1dbd7e04 Add dockerfile for running voight_kampff test 2020-03-23 11:41:13 +01:00
Åke Forslund b4507b7866 Add Voight Kampff test
The Voight kampff test is an integration test collecting and running
behave test of skills.
2020-03-23 11:41:09 +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
Åke Forslund 8e12aee1dc Remove refs to Settings class from skill tester
Skill tester used a "mocked" skill test class overriding some methods.
This is no longer necessary since a normal dict will work just as well.
2020-02-27 08:07:12 +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
Åke Forslund 22b21d1773 Add test case for Server error 2020-02-17 15:11:55 +01:00
Åke Forslund b581766a00 Fallback to mimic for bad http status codes
Added a RemoteTTSException exception for non-timeout exceptions, Mimic2
will consider HTTP status code 200-299 as OK while other responses will
trigger raise RemoteTTSException.
2020-02-17 15:08:21 +01:00
jarbasal f4a96e6c22 Update Unittests and fix pep8 2020-02-15 15:35:43 +01:00
Åke Forslund 968370cbf1 Remove exec permission from format files
mycroft/util/format.py and test/unittests/util/test_format.py
2020-02-13 07:59:16 +01:00
Åke Forslund 9245f551f4 Remove backwards compat. imports from lang tools
This removes the whole mycroft.util.lang submodule replacing it with a
minimum needed set of functions

extract_datetime: when a date was missing en-us would return the current date
to not mess up existing skills. This is no longer the case, if an
utterance doesn't contain a date the function will return None as
indicated by the docstring
2020-02-12 09:27:50 +01:00
Åke 47038f575e
Merge pull request 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 6ebf8551b9 Rename audioaccuracytest to wakewordtest 2020-02-03 12:17:23 +01:00
Åke Forslund 31d09ac42b Add Documentation for the audio accuracy test 2020-02-03 10:01:09 +01:00
Åke Forslund fcc8b70148 Simplify data dir for false negative check files
Now the test files for false negatives are simply put in the
data/with_wake_word folder
2020-02-03 10:01:09 +01:00
Åke Forslund e6896e1831 Make audio accuracy test runable again
- Move to test directory
- Make runable module
- Add some waiting to give Wakeword engine time to report back
- Disable beep on found wakeword
- Update gitignore directory
2020-02-03 10:00:55 +01:00
Åke Forslund 9c8c8e0144 Send time reference for "now" to Lingua-franca
This will provide timezone info as well as now reference to the
extracted sentences.
2020-01-29 15:33:28 +01:00
Åke Forslund dbdc3f1e35 Add tests for CommonQuerySkill 2020-01-26 18:17:33 +01:00
Åke Forslund f77fe9de58 Remove test cases
The functionallity of lingua franca has been verified so the language
specific test cases aren't needed anymore. The base test cases for
english for format.py and parse.py is left as long as those remain as
part of the utils module.
2020-01-18 08:58:23 +01:00
Åke Forslund fffa6cc9af Test track start and end queue messages 2020-01-15 11:50:51 +01:00
Åke Forslund 277fd92e8f Add tests for vlc audio backend 2020-01-15 09:06:50 +01:00
Åke Forslund 2a9d273f86 Add tests for simple audio backend 2020-01-15 09:06:50 +01:00
Åke Forslund 0b2610206d Add tests for speech dispatcher 2020-01-15 09:06:50 +01:00
Åke Forslund e74b0e3900 Add audioservice method tests
This includes init, shutdown, play, stop, next, previous, pause,
seek_backward, seek_forward, queue lower_volume, restore_volume and resume.
2020-01-15 09:06:50 +01:00
Åke Forslund d25a2b4293 Rename audio/test_interface.py to test_utils.py
This is more inline with the tests that are performed in the file.

This also adds a test for stop_speaking
2020-01-15 09:06:50 +01:00
Åke 7352bdf98d
Merge pull request from forslund/test/disable-failing-spanish
Disable failing spanish datetime test
2020-01-13 15:48:24 +01:00
Åke Forslund 5b01ab1b91 Disable failing spanish datetime test 2020-01-13 15:38:35 +01:00
Åke Forslund eb3250fe90 Add more TTS tests
- Tests for TTS base class
- Test for TTS playback queue
- Test for TTS Factory create
- Tests for Mimic2 TTS
- Tests for Mimic TTS
- Tests for Google TTS
2020-01-10 16:26:48 +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 2263fab0b6
Merge pull request from forslund/bugfix/missing-hotword-parts
Make sure hotword entry has phonemes and threshold
2019-12-09 20:24:58 +01:00
Åke Forslund 0d8cbb57e5 Add Testcase to verify hotword fallback behaviour 2019-12-09 16:28:54 +01:00
Chris Rogers 7338387d4d Add failing unit test for 100% 2019-12-06 15:18:14 -08:00
Åke c9de7b431e
Merge pull request from forslund/feature/python3.8
Fix broken test case on Python 3.8
2019-12-05 10:54:04 +01:00
Åke Forslund 5e863515da Fix broken test case on Python 3.8
- Simplify broken test and make it work on python 3.8
- Add python 3.8 to mandatory test cases
2019-12-01 12:56:01 +01:00
maxbachmann c058633dd5 improve test runtime 2019-11-30 10:22:59 +01:00
Åke e6385720b3
Merge pull request from maxbachmann/python2cleanup
cleanup python2 unicode
2019-11-27 08:46:20 +01:00
Åke e78a9730e1
Merge pull request from maxbachmann/dev
Add more time idioms (half past, etc.)
2019-11-27 08:41:02 +01:00
maxbachmann 87220ee85c add some more time idioms 2019-11-27 01:53:23 +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
Mike Woudenberg cc5631c45f Adds rudimentary Dutch parsing support 2019-11-14 08:47:36 +01:00
Åke caf3341812
Merge pull request from forslund/bugfix/remove-all-events
Fix reference leak when using bus.remove_all_listeners
2019-11-07 23:08:27 +01:00
Åke Forslund 821189d0c7 Use specific date in the past during the test 2019-11-01 07:54:35 +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 324fe988aa
Merge pull request from ChanceNCounter/spanish-language-parsers
fix bug in isFractional_es and improve coverage
2019-10-14 16:04:57 +02:00
Kris Gesling b7786d4926
Merge pull request from MycroftAI/bugfix/test-logger-restore
Make skill's logging visible in tester
2019-10-10 22:06:15 +09:30