[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste
-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... ..... .EEE.. == 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 [EMAIL PROTECTED] 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- ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste
Tres Seaver wrote: 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... ..... .EEE.. == 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? No idea. I thought it would be save to remove Zope2.startup() by default in Zope 2.8 and later. There are still some tests that need this, but apparently my way to test which ones is not sufficient. I'm on Windows ATM, so I can't test it with zopectl. But bin\python.exe bin\test.py -v --libdir Products/CMFDefault doesn't raise any errors on my machine. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste
Jens Vagelpohl wrote: On 2 Dec 2005, at 18:58, yuppie wrote: Tres Seaver wrote: 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 I'm trying to run those tests and seem to come against some dependency issue, once again. Running CMF trunk with Five trunk and the Zope-2.8-branch gives me this: File "/usr/local/zope/28Instance/Products/GenericSetup/utils.py", line 36, in ? from Products.Five.bbb.OFS_interfaces import IOrderedContainer ImportError: No module named bbb.OFS_interfaces Could we please be a little more specific in each modules' DEPENDENCIES.txt about the exact software versions needed? The one in GenericSetup only says "Five >= 1.2". What do I need? Five 1.2 branch depends on Zope 2.8 branch, Five 1.3 branch and Five trunk depend on Zope 2.9 branch or Zope trunk. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl wrote: > > On 2 Dec 2005, at 18:58, yuppie wrote: > >> Tres Seaver wrote: >> 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 > > > These issues are not present on the trunk, they are specific to your > branch, Tres. I see failures as well, but it all blows up with > exceptions like this: > > == > ERROR: test_join_memberproperties > (CMFDefault.tests.test_join.MembershipTests) > -- > Traceback (most recent call last): > File "/usr/local/zope/28Instance/Products/CMFDefault/tests/ > test_join.py", line 37, in setUp > zcml.load_config('configure.zcml', Products.DCWorkflow) > AttributeError: 'module' object has no attribute 'DCWorkflow' > > hm... does this help? It says to me that the product initialization phase is being skpped (which is what I would expect from the diff at the top). Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] 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 iD8DBQFDkQ2I+gerLs4ltQ4RAqyjAJ9rKLvSpy+ntlY4eqmz4R3LuRE2UQCbB877 p3hg2ewelq55uYzSnmo5Qqk= =sXs1 -END PGP SIGNATURE- ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl wrote: On 2 Dec 2005, at 18:58, yuppie wrote: Tres Seaver wrote: 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 These issues are not present on the trunk, they are specific to your branch, Tres. I see failures as well, but it all blows up with exceptions like this: == ERROR: test_join_memberproperties (CMFDefault.tests.test_join.MembershipTests) -- Traceback (most recent call last): File "/usr/local/zope/28Instance/Products/CMFDefault/tests/ test_join.py", line 37, in setUp zcml.load_config('configure.zcml', Products.DCWorkflow) AttributeError: 'module' object has no attribute 'DCWorkflow' hm... does this help? It says to me that the product initialization phase is being skpped (which is what I would expect from the diff at the top). The linkviews doc tests are not set up correctly. They did work before because some other tests called Zope2.startup(). I guess the correct way would be to use ZopeTestCase's installProduct method, but adding Zope2.startup() at the top of test_linkviews.py seems to fix this issue as well. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste
On 2 Dec 2005, at 18:58, yuppie wrote: Tres Seaver wrote: 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 I'm trying to run those tests and seem to come against some dependency issue, once again. Running CMF trunk with Five trunk and the Zope-2.8-branch gives me this: File "/usr/local/zope/28Instance/Products/GenericSetup/utils.py", line 36, in ? from Products.Five.bbb.OFS_interfaces import IOrderedContainer ImportError: No module named bbb.OFS_interfaces Could we please be a little more specific in each modules' DEPENDENCIES.txt about the exact software versions needed? The one in GenericSetup only says "Five >= 1.2". What do I need? jens ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: SVN: CMF/trunk/CMFCore/tests/test_ - made copy tests more independent from implementation details of _verifyObjectPaste
On 2 Dec 2005, at 18:58, yuppie wrote: Tres Seaver wrote: 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 These issues are not present on the trunk, they are specific to your branch, Tres. I see failures as well, but it all blows up with exceptions like this: == ERROR: test_join_memberproperties (CMFDefault.tests.test_join.MembershipTests) -- Traceback (most recent call last): File "/usr/local/zope/28Instance/Products/CMFDefault/tests/ test_join.py", line 37, in setUp zcml.load_config('configure.zcml', Products.DCWorkflow) AttributeError: 'module' object has no attribute 'DCWorkflow' hm... does this help? jens ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests