On 5. Okt 2005, at 23:27, Paul Winkler wrote:
I'm trying to use CMFTestCase along with ZopeTestCase.Functional
to test my skin scripts. But how do I get them set up
properly? Anybody have working examples of this? I wondered
if there might be some in the Plone test suites but if so I
didn't find any.
Example that fails because "document_view" is 404:
class TestUI(CMFTestCase.CMFTestCase,
ZopeTestCase.FunctionalTestCase,
):
"""Test the skin scripts and templates.
"""
This should be
class TestUI(ZopeTestCase.Functional, CMFTestCase.CMFTestCase):
or even
class TestUI(CMFTestCase.FunctionalTestCase):
Your observation (in one of the other mails <wink>) is correct. Mix-
ins must come first. Also, make sure to use the SVN version of
CMFTestCase [1] as the tarball is outdated.
Stefan
[1] https://svn.plone.org/svn/collective/CMFTestCase/trunk
--
Anything that happens, happens. --Douglas Adams
_______________________________________________
Zope-CMF maillist - Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests