예제 #1
0
 def boards(self):
     boards = BoardFactory.create_batch(25)
     return boards
예제 #2
0
 def form(self):
     board = BoardFactory.build()
     return board_create_form_schema.dump(board).data
예제 #3
0
 def board_id(self, user):
     board = BoardFactory()
     self.session.commit()
     return board.id
예제 #4
0
 def board_id(self, user):
     board = BoardFactory.build(user_id=user.id, user=user)
     return board.id
예제 #5
0
 def board(self):
     return BoardFactory.create()
예제 #6
0
 def board_id(self, user):
     board = BoardFactory(user=user, user_id=user.id)
     self.session.commit()
     return board.id
예제 #7
0
 def board(self):
     board = BoardFactory.build()
     return board
예제 #8
0
        def board(self):
            board = BoardFactory()
            board.posts = PostFactory.create_batch(20)
            self.session.commit()

            return board
예제 #9
0
        def target_board_id(self):
            board = BoardFactory()
            self.session.commit()

            return board.id
예제 #10
0
 def already_created_board(self):
     return BoardFactory.create()
예제 #11
0
 def already_exist_board(self):
     return BoardFactory.create()