[Zope-CVS] CVS: Products/Ape/lib/apelib/tests - testzope2sql.py:1.11

Shane Hathaway shane at zope.com
Wed Mar 24 10:52:09 EST 2004


Update of /cvs-repository/Products/Ape/lib/apelib/tests
In directory cvs.zope.org:/tmp/cvs-serv26065/lib/apelib/tests

Modified Files:
	testzope2sql.py 
Log Message:
Brought the ZConfig schema for SQL databases up to date with the current code.


=== Products/Ape/lib/apelib/tests/testzope2sql.py 1.10 => 1.11 ===
--- Products/Ape/lib/apelib/tests/testzope2sql.py:1.10	Sat Mar 20 01:34:24 2004
+++ Products/Ape/lib/apelib/tests/testzope2sql.py	Wed Mar 24 10:52:08 2004
@@ -33,11 +33,11 @@
 
     dbapi_module = None  # Name of the Database API module (required)
     class_name = None
-    connect_args = '' # Python expression for connect()
+    connect_expression = ''
 
     def get_connection(self):
         c = getattr(apelib.sql.dbapi, self.class_name)
-        return c(self.dbapi_module, self.connect_args, prefix="apetest_")
+        return c(self.dbapi_module, self.connect_expression, prefix="apetest_")
 
     def setUp(self):
         global conf
@@ -80,13 +80,13 @@
 class PsycopgTests (Zope2SQLTests, unittest.TestCase):
     dbapi_module = 'psycopg'
     class_name = 'PostgreSQLConnection'
-    connect_args = '""'
+    connect_expression = 'connect("")'
 
 
 class MySQLTests (Zope2SQLTests, unittest.TestCase):
     dbapi_module = 'MySQLdb'
     class_name = 'MySQLConnection'
-    connect_args = 'db="ape"'
+    connect_expression = 'connect(db="ape")'
 
 
 def test_suite():




More information about the Zope-CVS mailing list