Skip to content

Instantly share code, notes, and snippets.

@dtmilano
Created January 23, 2018 16:46
Show Gist options
  • Save dtmilano/5ba8d5548274e61f0d1aba34755618fa to your computer and use it in GitHub Desktop.
Save dtmilano/5ba8d5548274e61f0d1aba34755618fa to your computer and use it in GitHub Desktop.
Sample test showing an Alexa conversation for BookMyTripSkill
class AlexaSkillManagementClientTests(AlexaSkillTest):
def test_book_my_trip_reserve_a_car(self):
skill_name = 'BookMyTripSkill'
intent = 'BookCar'
conversation = [
{'slot': None, 'text': 'ask book my trip to reserve a car'},
{'slot': 'CarType', 'text': 'midsize'},
{'slot': 'PickUpCity', 'text': 'buenos aires'},
{'slot': 'PickUpDate', 'text': 'tomorrow'},
{'slot': 'ReturnDate', 'text': 'five days from now'},
{'slot': 'DriverAge', 'text': 'twenty five'},
{'slot': None, 'prompt': 'Confirmation', 'text': 'yes'}
]
self.conversation_text(skill_name, intent, conversation, verbose=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment