[Checkins] SVN: zope.app.wsgi/trunk/ Say a bit more about the actually quite cool functionality that we added
Martijn Faassen
faassen at startifact.com
Tue Apr 13 13:01:52 EDT 2010
Log message for revision 110816:
Say a bit more about the actually quite cool functionality that we added
to zope.app.wsgi's testing infrastructure.
Changed:
U zope.app.wsgi/trunk/CHANGES.txt
U zope.app.wsgi/trunk/setup.py
-=-
Modified: zope.app.wsgi/trunk/CHANGES.txt
===================================================================
--- zope.app.wsgi/trunk/CHANGES.txt 2010-04-13 16:51:07 UTC (rev 110815)
+++ zope.app.wsgi/trunk/CHANGES.txt 2010-04-13 17:01:52 UTC (rev 110816)
@@ -8,10 +8,26 @@
- Rewrite tests in order not to dependent on zope.app.testing and
zope.app.zcmlfiles.
-- Add an test http function and a Browser class and BrowserLayer test
- layer to write functional tests.
+- zope.app.wsgi.testlayer introduces new testing functionality that
+ can replace the old functionality in zope.app.testing. In addition,
+ it supports using zope.testbrowser with WSGI directly (instead of
+ relying on zope.app.testing, which pulls in a lot of dependencies).
+ The interesting parts are:
+ * zope.app.wsgi.testlayer.BrowserLayer: this sets up a minimal layer that
+ allows you to use the new WSGI-enabled Browser.
+
+ * zope.app.wsgi.testlayer.Browser: this is a subclass of Browser from
+ zope.testbrowser.browser. Use it instead of zope.testbrowser.browser
+ directly to use the test browser with WSGI. You need to use BrowserLayer
+ with your tests for this to work.
+
+ * zope.app.wsgi.testlayer.http: this is the equivalent to the http()
+ function in zope.app.testing. It allows low-level HTTP access
+ through WSGI. You need to use BrowserLayer with your tests for
+ this to work.
+
3.6.1 (2010-01-29)
------------------
Modified: zope.app.wsgi/trunk/setup.py
===================================================================
--- zope.app.wsgi/trunk/setup.py 2010-04-13 16:51:07 UTC (rev 110815)
+++ zope.app.wsgi/trunk/setup.py 2010-04-13 17:01:52 UTC (rev 110816)
@@ -60,7 +60,7 @@
'ZConfig',
'wsgi_intercept',
'ZODB3',
- 'zope.app.appsetup >= 3.11.0',
+ 'zope.app.appsetup >= 3.14.0',
'zope.processlifetime',
'zope.app.publication',
'zope.event',
More information about the checkins
mailing list