CVS: Products/Zelenium - CHANGES.txt:1.18 zuite.py:1.11

Tres Seaver <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
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 )
 
 

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.