Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

get response tests #2838

Merged
merged 3 commits into from
Mar 10, 2021
Merged

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Feb 14, 2021

Description

Add some basic tests for the get_response(), ask_selection()and the ask_yesno() methods of the MycroftSkill.

This also fixes an off-by-one issue found in the ask_selection() when writing the test cases.

How to test

Ensure that the unittests passes.

Contributor license agreement signed?

CLA [ Yes ]

@forslund forslund added the Type: Tests Addition or improvement of automated tests label Feb 14, 2021
@devops-mycroft devops-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Feb 14, 2021
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

- get_response
- ask_yesno
- ask_selection
Fix off by one issue preventing the last option to be selected by
number.
@devops-mycroft
Copy link

Voight Kampff Integration Test Succeeded (Results)

@forslund forslund changed the title Test/get response tests get response tests Feb 14, 2021
@forslund forslund requested a review from JarbasAl March 2, 2021 07:29
Copy link
Contributor

@krisgesling krisgesling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay for more tests 🎉

Thanks heaps Ake!!

@krisgesling krisgesling merged commit 3679eb1 into MycroftAI:dev Mar 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) Type: Tests Addition or improvement of automated tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants