Code

- Optimisation: Late evaluation of Multilinks (only in rdbms backends):
[roundup.git] / test / test_postgresql.py
index 52e82f7a8420f054e6adc9ada52cc1bd0e999004..eb7104105de465b57ae04e77ac3db8a33ddbffd1 100644 (file)
@@ -22,7 +22,7 @@ import unittest
 from roundup.hyperdb import DatabaseError
 
 from db_test_base import DBTest, ROTest, config, SchemaTest, ClassicInitTest
-from db_test_base import ConcurrentDBTest
+from db_test_base import ConcurrentDBTest, FilterCacheTest
 
 from roundup.backends import get_backend, have_backend
 
@@ -68,6 +68,16 @@ class postgresqlConcurrencyTest(postgresqlOpener, ConcurrentDBTest):
         ConcurrentDBTest.tearDown(self)
         postgresqlOpener.tearDown(self)
 
+class postgresqlFilterCacheTest(postgresqlOpener, FilterCacheTest):
+    backend = 'postgresql'
+    def setUp(self):
+        postgresqlOpener.setUp(self)
+        FilterCacheTest.setUp(self)
+
+    def tearDown(self):
+        FilterCacheTest.tearDown(self)
+        postgresqlOpener.tearDown(self)
+
 class postgresqlSchemaTest(postgresqlOpener, SchemaTest):
     def setUp(self):
         postgresqlOpener.setUp(self)
@@ -114,6 +124,7 @@ def test_suite():
     suite.addTest(unittest.makeSuite(postgresqlClassicInitTest))
     suite.addTest(unittest.makeSuite(postgresqlSessionTest))
     suite.addTest(unittest.makeSuite(postgresqlConcurrencyTest))
+    suite.addTest(unittest.makeSuite(postgresqlFilterCacheTest))
     return suite
 
 # vim: set et sts=4 sw=4 :