Re: Zope Tests: 42 OK, 3 Failed

Benji York <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <[email protected]>
On Tue, Jun 29, 2010 at 3:18 PM, Tres Seaver <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Zope Tests Summarizer wrote:
>> Summary of messages to the zope-tests list.
>> Period Sun Jun 27 12:00:00 2010 UTC to Mon Jun 28 12:00:00 2010 UTC.
>> There were 45 messages: 6 from Zope Tests, 11 from ccomb at free.fr, 1 from ct at gocept.com, 27 from jdriessen at thehealthagency.com.
>>
>>
>> Test failures
>> -------------
>>
>> Subject: FAILED : Zope Buildbot / zope2.12 slave-osx
>> From: jdriessen at thehealthagency.com
>> Date: Sun Jun 27 13:01:37 EDT 2010
>> URL: http://mail.zope.org/pipermail/zope-tests/2010-June/015850.html
>
> The failing test here looks completely absurd:
>
> - ------------------------------- %< -----------------------------------
> Failure in test
> /Users/buildslave/.buildout/eggs/zope.testbrowser-3.6.0a2-py2.6.egg/zope/testbrowser/README.txt
> Failed doctest test for README.txt
>  File
> "/Users/buildslave/.buildout/eggs/zope.testbrowser-3.6.0a2-py2.6.egg/zope/testbrowser/README.txt",
> line 0
>
> - ----------------------------------------------------------------------
> File
> "/Users/buildslave/.buildout/eggs/zope.testbrowser-3.6.0a2-py2.6.egg/zope/testbrowser/README.txt",
> line 1248, in README.txt
> Failed example:
>    browser.lastRequestPystones < 10000 # really big number for safety
> Expected:
>    True
> Got:
>    False
>
> - ------------------------------- %< -----------------------------------
>
> What in the name of all that is holy is that supposed to be testing
> (much lest documenting)?  In other words:  who wants to argue for not
> ripping that useless (so I assert ;) assertion out?

The above is attempting to document the fact that the
lastRequestPystones exists and is a number.  If I were to write the
test today I'd use a mocking framework to fix the number returned so the
example is more direct, but it seems sufficient as-is.
-- 
Benji York
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
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.