hannesc, on 2008-10-29:
>
> Hey guys
>
> So I installed the RichDocument product, and when I check the products list
> in Zope, it shows up. The problem is that when I run one of my tests I get
> the following error:
>
> Error in test test_richdocument_renamed_to_page
> (optilux.policy.tests.test_setup.TestSetup)
> Traceback (most recent call last):
>   File
> "/home/hannes/optilux/parts/zope2/lib/python/Testing/ZopeTestCase/profiler.py",
> line 98, in __call__
>     testMethod()
>   File
> "/home/hannes/optilux/src/optilux.policy/optilux/policy/tests/test_setup.py",
> line 49, in test_richdocument_renamed_to_page
>     rich_document_fti = getattr(self.types, 'RichDocument')
> AttributeError: RichDocument
>
> My test_setup.py file looks as follows: http://paste.plone.org/24660
> and my base.py file in the tests folder looks as follows:
> http://paste.plone.org/24661
>
> Anyone have any ideas?

In base.py change this line:

  ptc.setupPloneSite(products=['optilux.policy'])

into this line:

  ptc.setupPloneSite(products=['RichDocument', 'optilux.policy'])

(Or perhaps Products.Richdocument.)

-- 
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to