def board(self): board = BoardFactory() board.posts = PostFactory.create_batch(20) self.session.commit() return board
def posts(self): PostFactory.create_batch( 11, created_at=factory.Faker('date_between').generate())
def board(self): board = BoardFactory() board.posts = PostFactory.create_batch(20) self.session.commit() return board
def posts(self): PostFactory.create_batch( 11, created_at=factory.Faker('date_between').generate())