Mercurial > p > roundup > code
diff test/test_liveserver.py @ 6918:cb2ed1e8c852
Change method for settin indexer; have test_livetest for pg cleanup
Add code to defer opening the indexer only if indexer is native-fts.
See if this fixes the sqlite OperationalError.
Also under python 2.7 (only), the db from test_livetracker when using
postgres FTS didn't empty the db. This caused the following
test_postgres.py test to fail.
Why it only showed up on 2.7 and not any of the 3.x releases is a
mystery.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 06 Sep 2022 14:43:36 -0400 |
| parents | 9ff091537f43 |
| children | ff2c8b430738 |
line wrap: on
line diff
--- a/test/test_liveserver.py Tue Sep 06 11:32:13 2022 -0400 +++ b/test/test_liveserver.py Tue Sep 06 14:43:36 2022 -0400 @@ -1183,6 +1183,11 @@ i18n.LOCALE_DIRS = ['locale'] i18n.DOMAIN = '' + @classmethod + def tearDownClass(cls): + # cleanup + cls.instance.backend.db_nuke(cls.db.config) + def test_native_fts(self): self.assertIn("postgresql_fts", str(self.db.indexer))
