[Zope-CMF] Running cmf-1.4.2 tests under zope 2.7.0?

Paul Winkler pw_lists at slinkp.com
Thu May 27 16:16:29 EDT 2004


Answering my own question:
zope 2.7.0 ships with bin/testrunner.py which does the trick
just fine. So, all_cmf_tesets.py not needed anymore I guess.

Also had to update my test modules to properly initialize
zope the 2.7.0 way:

Still getting the same error on my own test suite, though...
dunno why yet...

On Thu, May 27, 2004 at 03:40:35PM -0400, Paul Winkler wrote:
> Hiya,
> 
> I discovered today that all_cmf_tests.py from cmf 1.4.2 
> apparently doesn't work with zope 2.7.0: I get 1 failure and 112 errors.
> Most of them look like:
> 
> Traceback (most recent call last):
>   File "/home/pw/ZopeInstanceHome/Products/CMFCore/tests/base/testcase.py", line 54, in setUp
>     SecurityTest.setUp(self)
>   File "/home/pw/ZopeInstanceHome/Products/CMFCore/tests/base/testcase.py", line 41, in setUp
>     self.connection = Zope.DB.open()
> AttributeError: 'NoneType' object has no attribute 'open'
> 
> 
> I was using all_cmf_tests.py to run unittests for my own 
> CMF tools.  Is there a better way to do it under zope 2.7?
> 
> -- 
> 
> Paul Winkler
> http://www.slinkp.com
> 
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF at zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
> 
> See http://collector.zope.org/CMF for bug reports and feature requests

-- 

Paul Winkler
http://www.slinkp.com



More information about the Zope-CMF mailing list