Commit 141e83f3 authored by Ted Gould's avatar Ted Gould
Browse files

Adding a first test

parent 887d180f
Pipeline #20041961 failed with stage
in 3 minutes and 44 seconds
......@@ -6,11 +6,17 @@ variables:
before_script:
- apt update -q
- apt install -qyy git
- git clone --depth=1 https://github.com/MycroftAI/mycroft-core.git
- git clone --depth=1 -b feature/skill-tester https://github.com/CarstenAgerskov/mycroft-core.git # https://github.com/MycroftAI/mycroft-core.git
- ( cd mycroft-core ; ./dev_setup.sh -sm --allow-root )
cache:
paths:
- /root/.cache/pip/wheels/
- /var/cache/apt/archives/
test:
stage: test
script:
- 'export VIRTUALENV_ROOT=${HOME}/.virtualenvs/mycroft'
- 'echo "Tests Working"'
- cp mycroft-core/test/integrationtests/skills/skill_developers_testrunner.py .
- python skill_developers_testrunner.py
......@@ -21,11 +21,11 @@ class SmarterParentsSkill(MycroftSkill):
self.count = 0
# Parent vs. Parent
@intent_handler(IntentBuilder("").require("Query").require("Dad").require("Or").require("Mom"))
@intent_handler(IntentBuilder("QueryPVPDM").require("Query").require("Dad").require("Or").require("Mom"))
def handle_pvp_dm_intent(self, message):
self.speak_dialog("tie")
@intent_handler(IntentBuilder("").require("Query").require("Mom").require("Or").require("Dad"))
@intent_handler(IntentBuilder("QueryPVPMD").require("Query").require("Mom").require("Or").require("Dad"))
def handle_pvp_md_intent(self, message):
self.speak_dialog("tie")
......
{
"utterance": "Who's smarter, Mom or Dad",
"intent_type": "QueryPVPMD"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment