def create_begin_activity(self, action_id: str): if action_id not in self.SkillAction: raise Exception( f'Unable to create begin activity for "${action_id}".') # We don't support special parameters in these skills so a generic event with the # right name will do in this case. activity = Activity.create_event_activity() activity.name = action_id return activity
def test_create_event_activity(self): # Act result = Activity.create_event_activity() # Assert self.assertEqual(result.type, ActivityTypes.event)