New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Behave Test Problem: "Then reply should contain|include" does not work #2709
Comments
Hi seems like the syntax for containing a word should be Then mycroft reply should contain "SOMETHING CLEVER" Where SOMETHING CLEVER is the expected clever response from mycroft :) See here for the definition and an example can be found in the wiki skill. I haven't seen a "should not include" step, I see it referenced in the docs but I think that's mainly an example... |
I think the problem is most simply. Compare two this definition... |
Hey, I've changed that example in the docs. That was a mistake on my part. The broader "mycroft reply" Steps are useful when you don't actually care which Skill responds as long as you get a good answer. For example asking a general knowledge question like the height of the Eiffel tower - it might be DuckDuckGo, Wikipedia, or Wolfram Alpha that answer, but either way it's still a successful interaction. Thanks for raising the issue though, I think these are all good candidates to add as new Steps:
|
Ok. Thanks so much. Now it's clear how to use then_contains step. `Feature: current-weather
When i use But or And doesn't seems that the check of the word that reply have to contain is done on the previous reply, but seems that work as the usual Edit: This behaviour is the normal behaviour of behave.
Is the same of
So So in the case of then_contain is the same, the check is done on a new spoken utterance not on the previous. |
I'm trying to write test for my skill.
I'm using Behave framework.
In the mycroft documentation when is explaimed how write a test with Behave is shown a possibility to check if the mycroft reply contain or not a specific word.
But all the ways presented does not work for me.
I tried:
Where is the mistake?
I have to use the key-word "contain" or "include"?
The text was updated successfully, but these errors were encountered: