Author: reebalazs
Date: Fri Dec  7 12:11:11 2007
New Revision: 49501

Modified:
   kukit/kss.demo/branch/kss-zope-transition/kss/demo/selenium_utils/builder.py
Log:
Fix on builder in case no tests are registered

Modified: 
kukit/kss.demo/branch/kss-zope-transition/kss/demo/selenium_utils/builder.py
==============================================================================
--- 
kukit/kss.demo/branch/kss-zope-transition/kss/demo/selenium_utils/builder.py    
    (original)
+++ 
kukit/kss.demo/branch/kss-zope-transition/kss/demo/selenium_utils/builder.py    
    Fri Dec  7 12:11:11 2007
@@ -85,7 +85,8 @@
     htmlparser = HTMLTreeBuilder.TreeBuilder()
     tests = []
 
-    # Now, we find all filenames that are inthe suite passed to us.
+    # Now, we find all filenames that are in the suite passed to us.
+    testname = 'all'
 
     for filename in filenames:
         tree = HTMLTreeBuilder.parse(filename)
@@ -103,6 +104,8 @@
         testbody='    def test_%s(self):\n'%testname+' '*8+'\n        
'.join(commands)+'\n'
         tests.append(testbody)
 
+    # Use the last test's name as filename (???)
+    # XXX I think we want to change this.
     f.write(template.substitute(dict(
         testname=testname,
         tests='\n'.join(tests),
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to