[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste

Tres Seaver tseaver at palladion.com
Fri Dec 2 13:12:25 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yvo Schubbe wrote:
> Log message for revision 40493:
>   - made copy tests more independent from implementation details of _verifyObjectPaste
> 
> Changed:
>   U   CMF/trunk/CMFCore/tests/test_OpaqueItems.py
>   U   CMF/trunk/CMFCore/tests/test_PortalContent.py
>   U   CMF/trunk/CMFCore/tests/test_PortalFolder.py
> 
> -=-
> Modified: CMF/trunk/CMFCore/tests/test_OpaqueItems.py
> ===================================================================
> --- CMF/trunk/CMFCore/tests/test_OpaqueItems.py	2005-12-02 17:04:41 UTC (rev 40492)
> +++ CMF/trunk/CMFCore/tests/test_OpaqueItems.py	2005-12-02 17:30:34 UTC (rev 40493)
> @@ -14,10 +14,8 @@
>  
>  $Id$
>  """
> -from unittest import TestSuite, makeSuite, main
> +import unittest
>  import Testing
> -import Zope2
> -Zope2.startup()

I'm seeing issues in some tests which fail when run outside the full
suite after changes like these.  E.g.,

zopectl> test CMFDefault
Running tests via:
/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/../bin/python
/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/test.py -v --config-file
/home/tseaver/projects/CMF/cmf_test/viewify/etc/zope.conf --libdir
Products CMFDefaultRunning unit tests at level 1
Running unit tests from /home/tseaver/projects/CMF/cmf_test/viewify/Products
Parsing /home/tseaver/projects/CMF/cmf_test/viewify/etc/zope.conf
............EE...........................................................
...............EEEEEEEE..................................................
.EEEEEEE................EEEE..................
======================================================================
ERROR: testDiscussionReply
(CMFDefault.tests.test_DiscussionReply.DiscussionReplyTest)
- ----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/tseaver/projects/CMF/cmf_test/viewify/Products/CMFDefault/tests/test_DiscussionReply.py",
line 45, in setUp
    factory = self.root.manage_addProduct['CMFDefault'].addConfiguredSite
  File
"/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/App/FactoryDispatcher.py",
line 26, in __getitem__
    return self.__bobo_traverse__(None, name)
  File
"/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/App/FactoryDispatcher.py",
line 29, in __bobo_traverse__
    product=self.aq_acquire('_getProducts')()._product(name)
  File
"/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/App/Product.py",
line 69, in _product
    def _product(self, name): return getattr(self, name)
AttributeError: CMFDefault

(and 20 more like it).

Do you have a clue about what the cause might be?


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDkI6J+gerLs4ltQ4RAmuYAJ43oYqh8wMoUfEjdEnHc9Fwpp6E8wCgjO+g
8Yl3cnHShMTSQvOsFDcHDsw=
=mRkr
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list