Gaëtan Trellu
0247b3a4b5
[log_format] Add an option to change the log format ( #3016 )
...
* [log_format] Add an option to change the log format
Hacing an option to change the log format could be useful when logs
are shipped into an aggregator such as Elasticsearch.
The current format is very hard to parse.
* [log_format] Set default Formatter
Because mycroft.configuration.Configuration() class import LOG class,
a default Formatter have to be defined before import the
mycroft.configuration.Configuration() class.
2021-10-29 14:59:22 +09:30
Bart Ribbers
e20443b824
Use XDG Base directories for settings, cache and runtime data
...
Improve deprecation warning message
2021-08-05 10:04:45 +02:00
Kris Gesling
a794db0c9a
Make network tests configurable
...
Previously test URIs were hardcoded.
They can now be configured in mycroft.conf
2021-08-02 21:00:05 +09:30
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
5d3b9d479b
Fix test for expected TypeError
2021-05-07 15:34:37 +09:30
Kris Gesling
0fb90edd28
Rename to get_temp_path and add docstring
2021-04-30 16:49:59 +09:30
Kris Gesling
d9adf73db7
Add unit test for create_temp_file
2021-04-30 16:21:13 +09:30
dzekem christa
77d3969dc3
newline added
2021-04-30 14:48:15 +09:30
dzekem christa
241a8b89df
pep8 error rectified
2021-04-30 14:48:15 +09:30
dzekem christa
4547752c66
minor errors fixed
2021-04-30 14:48:15 +09:30
dzekem christa
7765d11224
ran autopep8
2021-04-30 14:48:15 +09:30
dzekem christa
3f745c52ad
created temp path function
2021-04-30 14:47:49 +09:30
dzekem christa
621b4ab650
spaces added and uniformity in code
2021-04-30 14:46:36 +09:30
dzekem christa
9252158829
rectified pep8 issues
2021-04-30 14:46:36 +09:30
dzekem christa
32f666edd4
Issue-2727 - fixing hard coded /tmp
2021-04-30 14:46:36 +09:30
dzekem christa
a174c3c822
replaced hard coded /tmp
2021-04-30 14:46:36 +09:30
Åke Forslund
7bd27eb5df
Make curate_cache() return removed files
2021-03-21 12:47:57 +01:00
Åke Forslund
eeb44ede9a
Add test cases for ProcessStatus
2021-01-28 17:21:33 +01:00
Åke Forslund
bb4e705d64
Add unittests for the plugin util
2020-09-23 07:46:13 +02:00
Åke Forslund
fc3d8ce801
Add MontonicEvent class
...
This handles jumps forward in time correctly
2020-09-10 13:26:25 +02:00
Kris Gesling
666178c483
remove unnecessary remove_last_slash method
2020-08-18 23:06:42 +09:30
Kris Gesling
ed46311cd8
remove unnecessary get_http method
2020-08-18 23:04:53 +09:30
Åke Forslund
1258480f30
Improve audio utils log
2020-04-27 08:38:44 +02:00
Åke Forslund
c5dccc16e2
Improve getting tmp download path
2020-04-17 23:42:04 +02:00
Åke Forslund
a3c625bb0a
Add basic test for download utility
2020-04-17 23:42:04 +02:00
Åke Forslund
06157e3331
Reuse ensure_directory_exists() in create_file()
...
ensure_directory_exists() now takes the directory permissions as an
optional argument.
2020-04-17 23:42:04 +02:00
Åke Forslund
05695f5b5f
Add simple test for get_platform
2020-04-17 23:42:04 +02:00
Åke Forslund
aa42552d97
Refactor test change loglevel and add tests for process_utils
2020-04-17 23:42:04 +02:00
Åke Forslund
e218533cf6
Split tests into several files
2020-04-17 23:42:04 +02:00
Åke Forslund
e651e39588
Add test for record function
2020-04-17 23:42:04 +02:00
Åke Forslund
60c0af69d6
Replace read_stripped_lines with generator
2020-04-17 23:42:04 +02:00
Åke Forslund
0d79af8ce2
Add tests for reading file functions
2020-04-17 23:42:04 +02:00
Åke Forslund
76ff53a615
Add tests for string related utils
2020-04-17 23:42:04 +02:00
Åke Forslund
2582d78237
Add tests for audio playback functions
2020-04-17 23:42:04 +02:00
Åke Forslund
f872daf7ca
Add tests for cache and file functions.
2020-04-17 23:42:04 +02:00
Åke Forslund
c52f2837f1
Add test for time utils
2020-04-17 23:42:04 +02: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 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
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
5b01ab1b91
Disable failing spanish datetime test
2020-01-13 15:38:35 +01:00
Chris Rogers
7338387d4d
Add failing unit test for 100%
2019-12-06 15:18:14 -08: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
Åke
e6385720b3
Merge pull request #2396 from maxbachmann/python2cleanup
...
cleanup python2 unicode
2019-11-27 08:46:20 +01:00
Åke
e78a9730e1
Merge pull request #2386 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
Mike Woudenberg
cc5631c45f
Adds rudimentary Dutch parsing support
2019-11-14 08:47:36 +01:00
Åke Forslund
821189d0c7
Use specific date in the past during the test
2019-11-01 07:54:35 +01:00
Åke
324fe988aa
Merge pull request #2356 from ChanceNCounter/spanish-language-parsers
...
fix bug in isFractional_es and improve coverage
2019-10-14 16:04:57 +02:00