[Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/ Added zope.app.pagelet package from 'svn.tiks.org' repository

Jim Fulton jim at zope.com
Wed Jan 19 16:56:07 EST 2005


Roger Ineichen wrote:
> Log message for revision 28392:
>   Added zope.app.pagelet package from 'svn.tiks.org' repository

...


> +Setup a view page template called 'index':
> +
> +  >>> from zope.app.pagelet.tests import testfiles
> +  >>> index = ViewPageTemplateFile('index_pagelets.pt',
> +  ...   'src/zope/app/pagelet/tests/testfiles')
> +

Using a relative path here makes the test too dependent
on how the test was run.  This test fails if run from
an instance, for example.

When using file paths in tests, they need to be computed
relative to the directory containing the tests.

Roger, can you fix this?

Jim

-- 
Jim Fulton           mailto:jim at zope.com       Python Powered!
CTO                  (540) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org


More information about the Zope3-dev mailing list