def setUp(self): database.set_metadata(__metadata__, 'sqlite:///:memory:', False, {}) helpers.setup_db(__metadata__) helpers.set_context(helpers.create_user()) self.board = board = helpers.create_board() self.column = column = board.create_column(1, u'test') self.card = column.create_card(u'test') self.extension = self.create_instance(self.card, DummyActionLog(), board)
def setUp(self): database.set_metadata(__metadata__, 'sqlite:///:memory:', False, {}) helpers.setup_db(__metadata__) helpers.set_context(helpers.create_user()) extensions = [(self.extension_name, self.extension_class)] if self.extension_name else [] self.board = board = helpers.create_board(extensions) self.column = column = board.create_column(1, u'test') self.card = column.create_card(u'test') self.extension = dict(self.card.extensions)[self.extension_name]() if self.extension_name else None
def setUp(self): database.set_metadata(__metadata__, 'sqlite:///:memory:', False, {}) helpers.setup_db(__metadata__) helpers.set_context(helpers.create_user()) extensions = [(self.extension_name, self.extension_class)] if self.extension_name else [] self.board = board = helpers.create_board(extensions) self.column = column = board.create_column(1, u'test') self.card = column.create_card(u'test') self.extension = dict(self.card.extensions)[ self.extension_name]() if self.extension_name else None
def setUp(self): helpers.setup_db(__metadata__) self.boards_manager = helpers.get_boards_manager()
def setUp(self): helpers.setup_db(__metadata__) services = helpers.create_services() self.boards_manager = boardsmanager.BoardsManager( '', '', '', {}, None, services)
def setUp(self): helpers.setup_db(__metadata__) services = helpers.create_services() self.boards_manager = boardsmanager.BoardsManager('', '', '', {}, None, services)
def setUp(self): helpers.setup_db(__metadata__) self.token_generator = forms.TokenGenerator(u'test_username', u'reset_password')