Issues 94 - Add intent unit tests for most skills (#120)
* Issues 94 - Add unit tests for date/time skill * Issues 94 - Update desktop launcher intent syntax * Issues 94 - Add intent tests for desktop launcher skill * Issues 94 - Add unit tests to Joke skill * Issues 94 - Add unit tests to naptime skill * Issues 94 - Add unit tests for spelling skill * Issues 94 - Remove application-based desktop unit testspull/80/merge
parent
b84756e970
commit
99a736f04f
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"utterance": "what time is it",
|
||||||
|
"intent_type": "TimeIntent",
|
||||||
|
"intent": {
|
||||||
|
"TimeKeyword": "what time is it"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"utterance": "whats the time",
|
||||||
|
"intent_type": "TimeIntent",
|
||||||
|
"intent": {
|
||||||
|
"TimeKeyword": "whats the time"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"utterance": "time is it",
|
||||||
|
"intent_type": "TimeIntent",
|
||||||
|
"intent": {
|
||||||
|
"TimeKeyword": "time is it"
|
||||||
|
}
|
||||||
|
}
|
|
@ -2,4 +2,5 @@ what time is it
|
||||||
what is the time
|
what is the time
|
||||||
what's the time
|
what's the time
|
||||||
whats the time
|
whats the time
|
||||||
what time is
|
what time is
|
||||||
|
time is it
|
||||||
|
|
|
@ -76,7 +76,7 @@ class DesktopLauncherSkill(MycroftSkill):
|
||||||
self.register_regex("(?P<SearchTerms>.*) on")
|
self.register_regex("(?P<SearchTerms>.*) on")
|
||||||
|
|
||||||
launch_intent = IntentBuilder(
|
launch_intent = IntentBuilder(
|
||||||
"LaunchDesktopApplication").require("LaunchKeyword").require(
|
"LaunchDesktopApplicationIntent").require("LaunchKeyword").require(
|
||||||
"Application").build()
|
"Application").build()
|
||||||
self.register_intent(launch_intent, self.handle_launch_desktop_app)
|
self.register_intent(launch_intent, self.handle_launch_desktop_app)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"utterance": "find puppies on wikipedia",
|
||||||
|
"intent_type": "SearchWebsiteIntent",
|
||||||
|
"intent": {
|
||||||
|
"SearchKeyword": "find",
|
||||||
|
"Website": "wikipedia",
|
||||||
|
"SearchTerms": "puppies"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"utterance": "launch imgur",
|
||||||
|
"intent_type": "LaunchWebsiteIntent",
|
||||||
|
"intent": {
|
||||||
|
"LaunchKeyword": "launch",
|
||||||
|
"Website": "imgur"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"utterance": "open tumblr",
|
||||||
|
"intent_type": "LaunchWebsiteIntent",
|
||||||
|
"intent": {
|
||||||
|
"LaunchKeyword": "open",
|
||||||
|
"Website": "tumblr"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"utterance": "give me a joke",
|
||||||
|
"intent_type": "JokingIntent",
|
||||||
|
"intent": {
|
||||||
|
"JokingKeyword": "joke"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"utterance": "make me laugh",
|
||||||
|
"intent_type": "JokingIntent",
|
||||||
|
"intent": {
|
||||||
|
"JokingKeyword": "make me laugh"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"utterance": "it's time for nap time",
|
||||||
|
"intent_type": "NapTimeIntent",
|
||||||
|
"intent": {
|
||||||
|
"SleepCommand": "nap time"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"utterance": "you should go to sleep",
|
||||||
|
"intent_type": "NapTimeIntent",
|
||||||
|
"intent": {
|
||||||
|
"SleepCommand": "go to sleep"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"utterance": "spell happiness",
|
||||||
|
"intent_type": "SpellingIntent",
|
||||||
|
"intent": {
|
||||||
|
"SpellingKeyword": "spell",
|
||||||
|
"Word": "happiness"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"utterance": "how do you spell the word intelligence",
|
||||||
|
"intent_type": "SpellingIntent",
|
||||||
|
"intent": {
|
||||||
|
"SpellingKeyword": "spell the word",
|
||||||
|
"Word": "intelligence"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue