[Zope3-checkins]
CVS: Zope3/src/zope/app/browser/applicationcontrol/tests
- test_runtimeinfoview.py:1.8
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:12:24 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/applicationcontrol/tests
In directory cvs.zope.org:/tmp/cvs-serv31883/src/zope/app/browser/applicationcontrol/tests
Modified Files:
test_runtimeinfoview.py
Log Message:
Changed to use the new ztapi module, which provides handy functions
for setting up adapters and views for tests. This is needed because
there are no-longer global adapter and view services sitting around as
module globals.
=== Zope3/src/zope/app/browser/applicationcontrol/tests/test_runtimeinfoview.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/browser/applicationcontrol/tests/test_runtimeinfoview.py:1.7 Thu Jul 31 17:37:31 2003
+++ Zope3/src/zope/app/browser/applicationcontrol/tests/test_runtimeinfoview.py Fri Nov 21 12:11:53 2003
@@ -17,6 +17,7 @@
"""
import unittest
from types import DictType
+from zope.app.tests import ztapi
from zope.app.applicationcontrol.applicationcontrol import applicationController
from zope.app.applicationcontrol.runtimeinfo import RuntimeInfo
@@ -36,8 +37,7 @@
return view
def test_RuntimeInfoView(self):
- getService(None,Adapters).provideAdapter(
- IApplicationControl, IRuntimeInfo, RuntimeInfo)
+ ztapi.provideAdapter(IApplicationControl, IRuntimeInfo, RuntimeInfo)
test_runtimeinfoview = self._TestView__newView(applicationController)
test_format = test_runtimeinfoview.runtimeInfo()
More information about the Zope3-Checkins
mailing list