[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/tests - PlacefulSetup.py:1.6 testServiceDirective.py:1.3
Jim Fulton
jim@zope.com
Fri, 4 Oct 2002 14:37:53 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/tests
In directory cvs.zope.org:/tmp/cvs-serv21435/lib/python/Zope/App/OFS/Services/ServiceManager/tests
Modified Files:
PlacefulSetup.py testServiceDirective.py
Log Message:
Many components now need to generate events. This means that an event
service needs to be in place when testing. For this reason, I've
refactored PlacelessSetup to include events.
- I added a PlacelessSetup in Zope.Event.tests.
This module also registers a subscriber that collects all events in
a list and a function for getting all of the events that match an
optional event type or filter. This is useful so that component
tests can include tests to make sure that the proper events are
being fired.
- I added a PlacelessSetup in Zope.App.tests that combines the
PlacelessSetup from Zope.App.ComponentArchitecture and Zope.Event.
- I changed all the modules that imported
Zope.ComponentArchitecture.tests.PlacelessSetup to import
Zope.App.tests.PlacelessSetup.
=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/tests/PlacefulSetup.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/tests/PlacefulSetup.py:1.5 Thu Aug 1 14:42:12 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/tests/PlacefulSetup.py Fri Oct 4 14:37:22 2002
@@ -16,7 +16,7 @@
Revision information:
$Id$
"""
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
class PlacefulSetup(PlacelessSetup):
=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/tests/testServiceDirective.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/tests/testServiceDirective.py:1.2 Wed Jul 17 12:54:19 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/tests/testServiceDirective.py Fri Oct 4 14:37:22 2002
@@ -26,7 +26,7 @@
from Interface import Interface
from Zope.App.OFS.Services.ServiceManager.ServiceDirective \
import ServiceDirective
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
from Zope.App.Traversing.IPhysicallyLocatable import IPhysicallyLocatable
from Zope.App.Traversing.IContainmentRoot import IContainmentRoot