comparison test/test_sqlite.py @ 6923:1daa283ae3e7

merge test_sqlite.py remove of setup/teardown
author John Rouillard <rouilj@ieee.org>
date Tue, 06 Sep 2022 17:46:34 -0400
parents 3cfb8eccc86e
children 22d001cafd09
comparison
equal deleted inserted replaced
6922:766d58315f46 6923:1daa283ae3e7
34 shutil.rmtree(config.DATABASE) 34 shutil.rmtree(config.DATABASE)
35 35
36 36
37 class sqliteDBTest(sqliteOpener, DBTest, unittest.TestCase): 37 class sqliteDBTest(sqliteOpener, DBTest, unittest.TestCase):
38 38
39 def setUp(self): 39 """def setUp(self):
40 # set for manual integration testing of 'native-fts' 40 # set for manual integration testing of 'native-fts'
41 # It is unset in tearDown so it doesn't leak into other tests. 41 # It is unset in tearDown so it doesn't leak into other tests.
42 # FIXME extract test methods in DBTest that hit the indexer 42 # FIXME extract test methods in DBTest that hit the indexer
43 # into a new class (DBTestIndexer). Add DBTestIndexer 43 # into a new class (DBTestIndexer). Add DBTestIndexer
44 # to this class. 44 # to this class.
50 50
51 def tearDown(self): 51 def tearDown(self):
52 # clean up config to prevent leak if native-fts is tested 52 # clean up config to prevent leak if native-fts is tested
53 config['INDEXER'] = '' 53 config['INDEXER'] = ''
54 DBTest.tearDown 54 DBTest.tearDown
55 """
55 56
56 def testUpgrade_6_to_7(self): 57 def testUpgrade_6_to_7(self):
57 58
58 # load the database 59 # load the database
59 self.db.issue.create(title="flebble frooz") 60 self.db.issue.create(title="flebble frooz")

Roundup Issue Tracker: http://roundup-tracker.org/