def create_custom_brand_and_party(self): brand = create_brand(id='custom', title='Custom Events') party = create_party(id='custom-party-4', brand=brand, title='Custom Party 4') self._persist(brand, party) return party
def create_brand_and_party(self): self.brand = create_brand(id='lanresort', title='LANresort') self.db.session.add(self.brand) self.party = create_party(id='lanresort-2015', brand=self.brand, title='LANresort 2015') self.db.session.add(self.party) self.db.session.commit()