Exemple #1
0
class TestMysqlTaskDB(TestTaskDB, unittest.TestCase):
    @classmethod
    def setUpClass(self):
        from database.mysql.taskdb import TaskDB
        self.taskdb = TaskDB(database='pyspider_test_taskdb')

    @classmethod
    def tearDownClass(self):
        self.taskdb._execute('DROP DATABASE pyspider_test_taskdb')
Exemple #2
0
 def setUpClass(self):
     from database.mysql.taskdb import TaskDB
     self.taskdb = TaskDB(database='pyspider_test_taskdb')
Exemple #3
0
 def setUpClass(self):
     from database.sqlite.taskdb import TaskDB
     self.taskdb = TaskDB(':memory:')