def create_event(): number = db.Number() number.number = "5678" number.country = "US" number.save() event = db.Event() event.name = "Test event" event.slug = "test" event.owner_user_id = "abc123" event.primary_number = number.number event.primary_number_id = number event.save() return event
def create_event(name=EVENT_NAME, number=EVENT_NUMBER): number_ = db.Number() number_.number = number number_.country = "US" number_.features = "" number_.save() event = db.Event() event.name = name event.slug = name event.owner_user_id = "abc123" event.primary_number = number_.number event.primary_number_id = number_ event.save() return event
def new_event() -> models.Event: event = models.Event() return event