summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Fulton <jim@zope.com>2002-10-04 18:37:25 +0000
committerJim Fulton <jim@zope.com>2002-10-04 18:37:25 +0000
commit43c7e3fffe7900cbb457ecca5c399a0429eb1bc7 (patch)
tree84983e617de581f849cdc8e2091bcefe76070bb7
parent19ab0044392589e2d8c75f93a4b75154533e1f9d (diff)
downloadzope-traversing-43c7e3fffe7900cbb457ecca5c399a0429eb1bc7.tar.gz
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.
-rw-r--r--tests/testAcquire.py4
-rw-r--r--tests/testObjectName.py4
-rw-r--r--tests/testPhysicalLocationAdapters.py4
-rw-r--r--tests/testPresentation.py4
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/testAcquire.py b/tests/testAcquire.py
index beca8e4..1883b5a 100644
--- a/tests/testAcquire.py
+++ b/tests/testAcquire.py
@@ -14,11 +14,11 @@
"""
Revision information:
-$Id: testAcquire.py,v 1.3 2002/07/17 16:54:20 jeremy Exp $
+$Id: testAcquire.py,v 1.4 2002/10/04 18:37:24 jim Exp $
"""
from unittest import TestCase, TestSuite, main, makeSuite
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
from Zope.App.Traversing.ITraversable import ITraversable
from Zope.App.Traversing.DefaultTraversable import DefaultTraversable
from Zope.ComponentArchitecture.GlobalAdapterService import provideAdapter
diff --git a/tests/testObjectName.py b/tests/testObjectName.py
index 0e915f1..3e93197 100644
--- a/tests/testObjectName.py
+++ b/tests/testObjectName.py
@@ -14,12 +14,12 @@
"""Test the ObjectName adapter
Revision information:
-$Id: testObjectName.py,v 1.2 2002/07/17 16:54:20 jeremy Exp $
+$Id: testObjectName.py,v 1.3 2002/10/04 18:37:24 jim Exp $
"""
from unittest import TestCase, TestSuite, main, makeSuite
from Interface import Interface
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
from Zope.ComponentArchitecture import getService, getAdapter
from Zope.Proxy.ContextWrapper import ContextWrapper
diff --git a/tests/testPhysicalLocationAdapters.py b/tests/testPhysicalLocationAdapters.py
index b8ef593..65bc4a4 100644
--- a/tests/testPhysicalLocationAdapters.py
+++ b/tests/testPhysicalLocationAdapters.py
@@ -12,11 +12,11 @@
#
##############################################################################
"""
-$Id: testPhysicalLocationAdapters.py,v 1.3 2002/07/17 16:54:20 jeremy Exp $
+$Id: testPhysicalLocationAdapters.py,v 1.4 2002/10/04 18:37:24 jim Exp $
"""
from unittest import TestCase, TestSuite, main, makeSuite
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
from Zope.ComponentArchitecture.GlobalAdapterService import provideAdapter
from Zope.ComponentArchitecture import getAdapter
diff --git a/tests/testPresentation.py b/tests/testPresentation.py
index 06243d0..8db68d0 100644
--- a/tests/testPresentation.py
+++ b/tests/testPresentation.py
@@ -14,11 +14,11 @@
"""
Revision information:
-$Id: testPresentation.py,v 1.3 2002/07/17 16:54:20 jeremy Exp $
+$Id: testPresentation.py,v 1.4 2002/10/04 18:37:24 jim Exp $
"""
from unittest import TestCase, TestSuite, main, makeSuite
-from Zope.ComponentArchitecture.tests.PlacelessSetup import PlacelessSetup
+from Zope.App.tests.PlacelessSetup import PlacelessSetup
from Zope.ComponentArchitecture.GlobalViewService import provideView
from Zope.ComponentArchitecture.GlobalResourceService import provideResource
from Zope.App.Traversing.PresentationNamespaces import view, resource