class TestMysqlProjectDB(TestProjectDB, unittest.TestCase): @classmethod def setUpClass(self): from database.mysql.projectdb import ProjectDB self.projectdb = ProjectDB(database='pyspider_test_projectdb') @classmethod def tearDownClass(self): self.projectdb._execute('DROP DATABASE pyspider_test_projectdb')
def setUpClass(self): from database.mysql.projectdb import ProjectDB self.projectdb = ProjectDB(database='pyspider_test_projectdb')
def setUpClass(self): from database.sqlite.projectdb import ProjectDB self.projectdb = ProjectDB(':memory:')