diff test/test_postgresql.py @ 2082:c091cacdc505

Finished implementation of session and one-time-key stores for RDBMS backends. Refactored the API of sessions and their interaction with the backend database a fair bit too. Added some session tests. Nothing testing ageing yet, 'cos that's a pain inna ass to test :) Note: metakit backend still uses the *dbm implementation. It might want to implement its own session store some day, as it'll be faster than the *dbm one.
author Richard Jones <richard@users.sourceforge.net>
date Thu, 18 Mar 2004 01:58:46 +0000
parents b1704ba7be41
children b7404a96b58a
line wrap: on
line diff
--- a/test/test_postgresql.py	Wed Mar 17 22:01:37 2004 +0000
+++ b/test/test_postgresql.py	Thu Mar 18 01:58:46 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: test_postgresql.py,v 1.5 2004-03-12 04:09:00 richard Exp $ 
+# $Id: test_postgresql.py,v 1.6 2004-03-18 01:58:46 richard Exp $ 
 
 import unittest
 
@@ -92,6 +92,15 @@
         ClassicInitTest.tearDown(self)
         postgresqlOpener.tearDown(self)
 
+from session_common import RDBMSTest
+class postgresqlSessionTest(postgresqlOpener, RDBMSTest):
+    def setUp(self):
+        postgresqlOpener.setUp(self)
+        RDBMSTest.setUp(self)
+    def tearDown(self):
+        RDBMSTest.tearDown(self)
+        postgresqlOpener.tearDown(self)
+
 def test_suite():
     suite = unittest.TestSuite()
     if not hasattr(backends, 'postgresql'):
@@ -106,5 +115,6 @@
     suite.addTest(unittest.makeSuite(postgresqlROTest))
     suite.addTest(unittest.makeSuite(postgresqlSchemaTest))
     suite.addTest(unittest.makeSuite(postgresqlClassicInitTest))
+    suite.addTest(unittest.makeSuite(postgresqlSessionTest))
     return suite
 

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