#10 — Update the tests in the p4a.plonevideo egg

by Lucie Lejard last modified Jul 23, 2010 05:54 PM
State Unconfirmed
Area Tests
Issue type Feature
Severity Medium
Submitted by Lucie Lejard
Submitted on Jun 10, 2010
Responsible
Added by Thomas Besluau on Jul 23, 2010 05:54 PM
Note: the tests presently fail 2 times, in plone3:

Installing p4a.plonevideo ... done (0.030s)
  Set up Products.PloneTestCase.layer.PloneSite in 14.009 seconds.
  Running:
.................

Failure in test /home/thomas/sixfeetup/projects/plone3-buildout/src/p4a.plonevideo/p4a/plonevideo/plone-video.txt
Failed doctest test for plone-video.txt
  File "/home/thomas/sixfeetup/projects/plone3-buildout/src/p4a.plonevideo/p4a/plonevideo/plone-video.txt", line 0

----------------------------------------------------------------------
File "/home/thomas/sixfeetup/projects/plone3-buildout/src/p4a.plonevideo/p4a/plonevideo/plone-video.txt", line 122, in plone-video.txt
Failed example:
    'http://nohost/plone/++resource++flowplayer' in widget(
        downloadurl, imageurl,None, None)
Expected:
    True
Got:
    False

...

Failure in test /home/thomas/sixfeetup/projects/plone3-buildout/src/p4a.plonevideo/p4a/plonevideo/syndication.txt
Failed doctest test for syndication.txt
  File "/home/thomas/sixfeetup/projects/plone3-buildout/src/p4a.plonevideo/p4a/plonevideo/syndication.txt", line 0

----------------------------------------------------------------------
File "/home/thomas/sixfeetup/projects/plone3-buildout/src/p4a.plonevideo/p4a/plonevideo/syndication.txt", line 51, in syndication.txt
Failed example:
    config = item2.restrictedTraverse('@@video-link-config.html')
Exception raised:
    Traceback (most recent call last):
      File "/home/thomas/.buildout/zope/Zope-2.10.9-final-py2.4/lib/python/zope/testing/doctest.py", line 1348, in __run
        compileflags, 1) in test.globs
      File "<doctest syndication.txt[23]>", line 1, in ?
        config = item2.restrictedTraverse('@@video-link-config.html')
      File "/home/thomas/.buildout/zope/Zope-2.10.9-final-py2.4/lib/python/OFS/Traversable.py", line 301, in restrictedTraverse
        return self.unrestrictedTraverse(path, default, restricted=True)
      File "/home/thomas/.buildout/zope/Zope-2.10.9-final-py2.4/lib/python/OFS/Traversable.py", line 269, in unrestrictedTraverse
        raise e
    AttributeError: @@video-link-config.html
----------------------------------------------------------------------
File "/home/thomas/sixfeetup/projects/plone3-buildout/src/p4a.plonevideo/p4a/plonevideo/syndication.txt", line 57, in syndication.txt
Failed example:
    len(entries)
Expected:
    2
Got:
    1

................................................
  Ran 68 tests with 2 failures and 0 errors in 4.302 seconds.

No responses can be added.