comparison test/test_sqlite.py @ 6925:22d001cafd09

try calling tearDown and see if tests run correctly. I had DBTest.tearDown not DBTest.tearDown(). Sigh. See if I get failures in CI with this change.
author John Rouillard <rouilj@ieee.org>
date Tue, 06 Sep 2022 18:59:39 -0400
parents 3cfb8eccc86e
children a96a239db0d9
comparison
equal deleted inserted replaced
6924:e57018b1c56f 6925:22d001cafd09
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.
45 # Then create a new class in this file: 45 # Then create a new class in this file:
46 # sqliteDBTestIndexerNative_FTS 46 # sqliteDBTestIndexerNative_FTS
47 # that imports from DBestIndexer to test native-fts. 47 # that imports from DBestIndexer to test native-fts.
48 # config['INDEXER'] = 'native-fts' 48 #
49 #config['INDEXER'] = 'native-fts'
49 DBTest.setUp(self) 50 DBTest.setUp(self)
50 51
51 def tearDown(self): 52 def tearDown(self):
52 # clean up config to prevent leak if native-fts is tested 53 # clean up config to prevent leak if native-fts is tested
53 config['INDEXER'] = '' 54 config['INDEXER'] = ''
54 DBTest.tearDown 55 DBTest.tearDown(self)
55 """
56 56
57 def testUpgrade_6_to_7(self): 57 def testUpgrade_6_to_7(self):
58 58
59 # load the database 59 # load the database
60 self.db.issue.create(title="flebble frooz") 60 self.db.issue.create(title="flebble frooz")

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