Example #1
0
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')
Example #2
0
 def setUpClass(self):
     from database.mysql.projectdb import ProjectDB
     self.projectdb = ProjectDB(database='pyspider_test_projectdb')
Example #3
0
 def setUpClass(self):
     from database.sqlite.projectdb import ProjectDB
     self.projectdb = ProjectDB(':memory:')