def setUp(self): self.cnx = MockConnection(()) try: self.helper = get_db_helper('mysql') except ImportError as exc: raise unittest.SkipTest(str(exc)) self.helper._cnx = self.cnx
def setUp(self): self.cnx = MockConnection(([1, 2], )) self.indexer = Indexer('sqlite', self.cnx)
def setUp(self): self.cnx = MockConnection(()) self.indexer = PGIndexer('postgres', self.cnx)
def setUp(self): self.cnx = MockConnection(()) self.helper = get_db_helper('sqlite')
def setUp(self): self.helper = get_db_helper('postgres') self.cnx = MockConnection(()) self.helper._cnx = self.cnx
def setUp(self): self.cnx = MockConnection(()) self.indexer = MyIndexer('mysql', self.cnx)
def setUp(self): self.cnx = MockConnection(([1, 2], )) self.indexer = FTIndexerMixIn() self.indexer._cnx = self.cnx
def setUp(self): self.helper = get_db_helper('sqlserver2005') self.cnx = MockConnection(()) self.helper._cnx = self.cnx