def boards(self): boards = BoardFactory.create_batch(25) return boards
def form(self): board = BoardFactory.build() return board_create_form_schema.dump(board).data
def board_id(self, user): board = BoardFactory() self.session.commit() return board.id
def board_id(self, user): board = BoardFactory.build(user_id=user.id, user=user) return board.id
def board(self): return BoardFactory.create()
def board_id(self, user): board = BoardFactory(user=user, user_id=user.id) self.session.commit() return board.id
def board(self): board = BoardFactory.build() return board
def board(self): board = BoardFactory() board.posts = PostFactory.create_batch(20) self.session.commit() return board
def target_board_id(self): board = BoardFactory() self.session.commit() return board.id
def already_created_board(self): return BoardFactory.create()
def already_exist_board(self): return BoardFactory.create()