[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/configuration/tests - test_namecomponentconfigurableview.py:1.2
Marius Gedminas
mgedmin@codeworks.lt
Mon, 24 Mar 2003 11:42:51 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services/configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv1757/src/zope/app/browser/services/configuration/tests
Modified Files:
test_namecomponentconfigurableview.py
Log Message:
zope.app.traversing changes:
- canonicalPath() now actually makes the path canonical
- locationAsTuple() is gone
- traverse() now gets an adapter to ITraverser instead of hardcoding Traverser
- traverseName() now accepts a 'traversable' argument opening the way for
optimizations
- some tests had to be updated
SteveA & Marius
=== Zope3/src/zope/app/browser/services/configuration/tests/test_namecomponentconfigurableview.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/services/configuration/tests/test_namecomponentconfigurableview.py:1.1 Fri Mar 21 16:09:34 2003
+++ Zope3/src/zope/app/browser/services/configuration/tests/test_namecomponentconfigurableview.py Mon Mar 24 11:42:20 2003
@@ -22,10 +22,12 @@
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.publisher.interfaces.browser import IBrowserPresentation
from zope.component.view import provideView
+from zope.component.adapter import provideAdapter
from zope.publisher.browser import BrowserView
from zope.app.browser.services.configuration \
import NameComponentConfigurableView
-from zope.app.interfaces.traversing import ITraversable
+from zope.app.interfaces.traversing import ITraversable, ITraverser
+from zope.app.traversing.adapters import Traverser
class SM:
@@ -80,6 +82,7 @@
class Test(PlacelessSetup, TestCase):
def test_update(self):
+ provideAdapter(None, ITraverser, Traverser)
provideView(I, 'ChangeConfigurations', IBrowserPresentation, V)
provideView(ITestConfiguration, 'absolute_url', IBrowserPresentation,
AU)