def board(self):
            board = BoardFactory()
            board.posts = PostFactory.create_batch(20)
            self.session.commit()

            return board
Exemple #2
0
 def posts(self):
     PostFactory.create_batch(
         11, created_at=factory.Faker('date_between').generate())