[Zope-CVS] CVS: Packages/FunctionalTests/FunctionalTests -
Result.py:1.2.4.1
Karl Anderson
cvs-admin at zope.org
Thu Nov 13 13:18:35 EST 2003
Update of /cvs-repository/Packages/FunctionalTests/FunctionalTests
In directory cvs.zope.org:/tmp/cvs-serv7081
Modified Files:
Tag: kra-intersest-branch
Result.py
Log Message:
added Result.updateDefaults()
Result.newChild(): pass self._defaults instead of using self.getDefaults()
This allows defaults to be kept between children of a suite. Hackish,
defaults should probably be global.
=== Packages/FunctionalTests/FunctionalTests/Result.py 1.2 => 1.2.4.1 ===
--- Packages/FunctionalTests/FunctionalTests/Result.py:1.2 Fri Jun 13 23:22:55 2003
+++ Packages/FunctionalTests/FunctionalTests/Result.py Thu Nov 13 13:18:34 2003
@@ -13,6 +13,11 @@
__implements__ = ( IResult, )
+# defaults is only used to parse the configfile. It is useful for one test
+# to affect a future test (for example, determine the ID of an object created).
+# It can't be copied because it'd be lost between suites. Should probably
+# be a global.
+
def __init__( self
, test
, application=None
@@ -64,6 +69,13 @@
result.update( self._defaults )
return result
+
+ def updateDefaults( self, dict ):
+
+ """ See IResult.
+ """
+ self._defaults.update( dict )
+
def getParent( self ):
""" See IResult.
@@ -201,7 +213,7 @@
klass = self.__class__
child = klass( test
, self.getApplication()
- , self.getDefaults()
+ , self._defaults #getDefaults() # hackish, globalize?
, self.timeRequests()
, self.checkResponses()
, self.checkElapsedTimes()
More information about the Zope-CVS
mailing list