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

Bernd Dorn bernd.dorn at fhv.at
Mon May 1 03:24:12 EDT 2006


On 01.05.2006, at 04:25, Gary Poster wrote:

>
> 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?
>

have you placed zc.datetimewidget-ftesting.zcml into your etc/package- 
includes
the demo only gets configured if ftesting.zcml is loaded



> 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.
>

thx, i'll have a look


> Gary
> _______________________________________________
> Checkins mailing list
> Checkins at zope.org
> http://mail.zope.org/mailman/listinfo/checkins



More information about the Checkins mailing list