[z3-five] getting the tests to run

Martijn Faassen faassen at infrae.com
Wed Aug 25 14:29:17 MEST 2004


Hi there,

I'm trying to get the tests to run on the trunk. Firstly, I couldn't get 
the tests to start at all, as tests/zopeconf.py was looking in 
lib/python/Testing for 'etc/zope.conf'. Apparently Sidnei introduced a 
change that looks for zope.conf in INSTANCE_HOME, but I cannot see how 
that works at all, as INSTANCE_HOME is overridden by the testing 
framework to point to lib/python/Testing. How did this work for you, Sidnei?

After fixing that by ignoring INSTANCE_HOME again, I still cannot run 
the tests. At first I thought it was before I was running the tests 
against ZopeX3 (which I think should be our target platform for the time 
being for Five), and that Sidnei had developed against the trunk. I 
switched to the trunk but I get the same errors. What am I doing wrong?

I first get a number of deprecation warnings concerning five:viewable (I 
do not think tests should be creating deprecation warnings).

The deprecation warning is bizarre:

/home/faassen/working/instances27/CAZope/Products/Five/fiveconfigure.py:154: 
DeprecationWarning: <five:viewable class="...IndexSimpleContent" /> has 
changed meaning. Please switch to <five:traversable 
class="...IndexSimpleContent" /> unless you *really* know what you are 
doing.

This implies I can use five:viewable, which is deprecated, if I really 
know what I'm doing? Deprecated features should not be used; if the 
features still have a meaning, then they're not deprecated, even if the 
meaning has changed.

finally, and worst, the test crash with the following:

File 
"/home/faassen/working/instances27/CAZope/Products/Five/browserconfigure.py", 
line 205, in resource
     factory = res_factory(name, res, resource_factory=new_class)
   File 
"/home/faassen/working/instances27/CAZope/Products/Five/resource.py", 
line 130, in __init__
     self.__rsrc = self.factory(path, name)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
"/home/faassen/working/instances27/CAZope/Products/Five/skel/site.zcml", 
line 13.2-13.23
     ZopeXMLConfigurationError: File 
"/home/faassen/working/instances27/CAZope/Products/FiveTest/configure.zcml", 
line 252.2-256.8
     TypeError: __init__() takes exactly 2 arguments (3 given)

I have no idea what is going on here, and I shouldn't have to.

If I'm not doing something wrong and the tests are indeed left in this 
sorry state, I'm pretty disappointed.

Regards,

Martijn


More information about the z3-five mailing list