[plumi-discuss] [Plumi] #243: Fix plumi.content doctests, and develop plumi.app / plumi.skin doc tests
Plumi
trac at plumi.org
Sun Jul 26 16:54:52 EST 2009
#243: Fix plumi.content doctests, and develop plumi.app / plumi.skin doc tests
--------------------------------+-------------------------------------------
Reporter: andycat | Owner:
Type: task | Status: new
Priority: major | Milestone: 0.3alpha - Plumi to Plone 3
Component: PlumiVideoProduct | Version:
Resolution: | Keywords:
--------------------------------+-------------------------------------------
Comment(by andycat):
The failing doctest is (running in debug mode, so it drops to pdb)
{{{
NAK-Factory:plumi-0.3 andycat$ ./bin/instance test -s plumi.content -t
README.txt -D
Running tests at level 1
Running Products.PloneTestCase.layer.PloneSite tests:
/Users/andycat/.buildout/eggs/collective.contentlicensing-2.2.0-py2.4.egg/collective/contentlicensing/browser/contentlicensingprefs.py:36:
DeprecationWarning: FormFieldsets is deprecated. The convenience import
confuses the test coverage tools. Please use the fully qualified name
instead.
from plone.fieldsets import FormFieldsets
/users/andycat/src/plumi-0.3/src/plumi.skin/plumi/skin/browser/portlets/recent_callouts.py:8:
DeprecationWarning: BrowserView: Products.CMFPlone.utils.BrowserView will
be removed in Plone 4.0. Please use Products.Five.BrowserView instead.
class RecentCalloutsPortlet(utils.BrowserView):
/users/andycat/src/plumi-0.3/src/plumi.skin/plumi/skin/browser/portlets/recent_comments.py:8:
DeprecationWarning: BrowserView: Products.CMFPlone.utils.BrowserView will
be removed in Plone 4.0. Please use Products.Five.BrowserView instead.
class RecentCommentPortlet(utils.BrowserView):
/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/configuration/fields.py:417:
UserWarning: You did not specify an i18n translation domain for the
'description' field in
/Users/andycat/.buildout/eggs/Products.ATVocabularyManager-1.4.2-py2.4.egg/Products/ATVocabularyManager/configure.zcml
warnings.warn(
/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/configuration/fields.py:417:
UserWarning: You did not specify an i18n translation domain for the
'title' field in
/Users/andycat/.buildout/eggs/Products.ATVocabularyManager-1.4.2-py2.4.egg/Products/ATVocabularyManager/configure.zcml
warnings.warn(
/Users/andycat/.buildout/eggs/contentratings-1.0_beta1-py2.4.egg/contentratings/browser/bbb/__init__.py:16:
DeprecationWarning: IEditorialRatingView is deprecated. The old style
rating views are no longer intended to be used.Use the aggregator and
rating views instead. This interface will go away in version 1.1
from contentratings.browser.interfaces import IEditorialRatingView
/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/configuration/config.py:692:
DeprecationWarning: The five:traversable statement is no longer needed and
will be removed in Zope 2.12.
actions = self.handler(context, **args)
/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/configuration/config.py:184:
DeprecationWarning: zope.app.event.interfaces has moved to
zope.lifecycleevent.interfaces. Import of zope.app.event.interfaces will
become unsupported in Zope 3.5
mod = __import__(mname, *_import_chickens)
/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/configuration/xmlconfig.py:323:
DeprecationWarning: zope.app.annotation has moved to zope.annotation.
Import of zope.app.annotation will become unsupported in Zope 3.5
__import__(arguments[0])
Set up Products.PloneTestCase.layer.ZCML in 13.895 seconds.
Installing plumi.content ... done (0.033s)
/Users/andycat/.buildout/eggs/Products.PlonePAS-3.9-py2.4.egg/Products/PlonePAS/setuphandlers.py:39:
DeprecationWarning: portal_groups.getGroupIds is deprecated and will be
removed in Plone 4.0. Use PAS searchGroups instead
existing = gtool.listGroupIds()
Set up Products.PloneTestCase.layer.PloneSite in 26.871 seconds.
Running:
..............................................................
Error in test
/users/andycat/src/plumi-0.3/src/plumi.content/plumi/content/README.txt
Traceback (most recent call last):
File
"/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/testing/doctest.py",
line 2395, in debug
runner.run(self._dt_test, clear_globs=False)
File
"/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/testing/doctest.py",
line 1826, in run
r = DocTestRunner.run(self, test, compileflags, out, False)
File
"/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/testing/doctest.py",
line 1484, in run
return self.__run(test, compileflags, out)
File
"/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/testing/doctest.py",
line 1402, in __run
exc_info)
File
"/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/testing/doctest.py",
line 1832, in report_unexpected_exception
raise UnexpectedException(test, example, exc_info)
UnexpectedException: <DocTest README.txt from
/users/andycat/src/plumi-0.3/src/plumi.content/plumi/content/README.txt:0
(167 examples)>
exceptions.LookupError:
label 'Plumi Call Out'
>
/users/andycat/src/plumi-0.3/parts/zope2/lib/python/zope/testbrowser/browser.py(50)disambiguate()
-> raise LookupError(msg)
(Pdb)
}}}
--
Ticket URL: <http://plumi.org/ticket/243#comment:1>
Plumi <http://plumi.org/>
Plumi - FOSS Video Sharing Platform
More information about the Discuss
mailing list