[Zope-CVS] CVS: Products/Zelenium - CHANGES.txt:1.18 zuite.py:1.11
Tres Seaver
tseaver at zope.com
Mon May 2 22:25:40 EDT 2005
Update of /cvs-repository/Products/Zelenium
In directory cvs.zope.org:/tmp/cvs-serv23885
Modified Files:
CHANGES.txt zuite.py
Log Message:
- Add some unit tests.
=== Products/Zelenium/CHANGES.txt 1.17 => 1.18 ===
--- Products/Zelenium/CHANGES.txt:1.17 Mon May 2 21:03:23 2005
+++ Products/Zelenium/CHANGES.txt Mon May 2 22:25:09 2005
@@ -2,6 +2,8 @@
After Zelenium-0.4.1
+ - Add unit tests for Zuite class.
+
- Make ZIPfile generation work with nested suites.
Zelenium-0.4.1 (2005/05/02)
=== Products/Zelenium/zuite.py 1.10 => 1.11 ===
--- Products/Zelenium/zuite.py:1.10 Mon May 2 21:03:23 2005
+++ Products/Zelenium/zuite.py Mon May 2 22:25:09 2005
@@ -23,6 +23,14 @@
from permissions import ManageSeleniumTestCases
from permissions import View
+_NOW = None # set only for testing
+
+def _getNow():
+ if _NOW is not None:
+ return _NOW
+
+ return DateTime()
+
_WWW_DIR = os.path.join( package_home( globals() ), 'www' )
#
@@ -407,8 +415,8 @@
def getZipFileName(self):
""" Generate a suitable name for the zip file.
"""
- now = self.ZopeTime()
- now_str = now.strftime( '%Y-%m-%d' )
+ now = _getNow()
+ now_str = now.ISO()[:10]
return '%s-%s.zip' % ( self.getId(), now_str )
More information about the Zope-CVS
mailing list