[Checkins] SVN: zc.datetimewidget/trunk/src/zc/datetimewidget/ added demo package an a functional test which uses it

Gary Poster gary at zope.com
Sun Apr 30 22:25:46 EDT 2006


On Apr 30, 2006, at 10:07 AM, Bernd Dorn wrote:

> Log message for revision 67764:
>   added demo package an a functional test which uses it
>   do not return the tzinfo in the display field, because it is not  
> used anyway
>   added a timezone test

Hey Bernd.  Thanks for this code.

Unfortunately, the functional tests you checked in fail.

File "/home/gary/z4i/instance/lib/python/zc/datetimewidget/demo/ 
README.txt", line 16, in README.txt
Failed example:
     link = browser.getLink('Datetimewidget Demo')
Exception raised:
     Traceback (most recent call last):
       File "/home/gary/z4i/var/src/zope3/src/zope/testing/ 
doctest.py", line 1256, in __run
         compileflags, 1) in test.globs
       File "<doctest README.txt[4]>", line 1, in ?
         link = browser.getLink('Datetimewidget Demo')
       File "/home/gary/z4i/var/src/zope3/src/zope/testbrowser/ 
browser.py", line 286, in getLink
         return Link(self.mech_browser.find_link(**args), self)
       File "/home/gary/z4i/var/src/zope3/src/mechanize/ 
_mechanize.py", line 557, in find_link
         return self._find_links(True, **kwds)
       File "/home/gary/z4i/var/src/zope3/src/mechanize/ 
_mechanize.py", line 627, in _find_links
         raise LinkNotFoundError()
     LinkNotFoundError

After that, all the rest of the tests fail, of course.  Could you fix  
this up?

Also, while this is our fault in part for insufficient tests, the  
changes you made to the _toFormValue methods are broken.  I checked  
in a version that works: please review to see if it does what you  
intended also.  I can't promise a test addition immediately: if you  
have one, it would be appreciated.

Gary


More information about the Checkins mailing list