def curtain_close_skill_handler(): '''Returns a SkillHandler instance with a curtain close request event''' with open('{}/curtain_close_request.json'.format(jsonRequestsPath)) as f: event = json.load(f) curtainClose = SkillHandler(event=event, responseConfig=responseConfig) yield curtainClose
def fallback_skill_handler(): '''Returns a SkillHandler instance with a fallback request event''' with open('{}/fallback_request.json'.format(jsonRequestsPath)) as f: event = json.load(f) yield SkillHandler(event=event, responseConfig=responseConfig)
def invalid_skill_id_skill_handler(): '''Returns a SkillHandler instance with a invalid skillId''' with open( '{}/invalid_skill_id_request.json'.format(jsonRequestsPath)) as f: event = json.load(f) yield SkillHandler(event=event, responseConfig=responseConfig)
def session_ended_skill_handler(): '''Returns a SkillHandler instance with a sessionEnded request event''' with open('{}/session_ended_request.json'.format(jsonRequestsPath)) as f: event = json.load(f) yield SkillHandler(event=event, responseConfig=responseConfig)