[Neo-report] r2442 gregory - /trunk/neo/tests/functional/__init__.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 9 16:57:35 CET 2010


Author: gregory
Date: Tue Nov  9 16:57:33 2010
New Revision: 2442

Log:
Forward parameters from functional test to client application.

This is mainly usefull to disable compression.

Modified:
    trunk/neo/tests/functional/__init__.py

Modified: trunk/neo/tests/functional/__init__.py
==============================================================================
--- trunk/neo/tests/functional/__init__.py [iso-8859-1] (original)
+++ trunk/neo/tests/functional/__init__.py [iso-8859-1] Tue Nov  9 16:57:33 2010
@@ -328,7 +328,7 @@ class NEOCluster(object):
     def getNEOCTL(self):
         return self.neoctl
 
-    def getZODBStorage(self):
+    def getZODBStorage(self, **kw):
         master_nodes = self.master_nodes.replace('/', ' ')
         result = Storage(
             master_nodes=master_nodes,
@@ -336,13 +336,14 @@ class NEOCluster(object):
             connector='SocketConnector',
             logfile=os.path.join(self.temp_dir, 'client.log'),
             verbose=self.verbose,
+            **kw
         )
         self.zodb_storage_list.append(result)
         return result
 
-    def getZODBConnection(self):
+    def getZODBConnection(self, **kw):
         """ Return a tuple with the database and a connection """
-        db = ZODB.DB(storage=self.getZODBStorage())
+        db = ZODB.DB(storage=self.getZODBStorage(**kw))
         return (db, db.open())
 
     def getSQLConnection(self, db, autocommit=False):





More information about the Neo-report mailing list