[Zope-dev] zope.testbrowser and WebTest (round 2)
Brian Sutherland
brian at vanguardistas.net
Sun Jan 30 10:04:43 EST 2011
I've finally finished refactoring my WebTest/testbrowser branches,
basically doing this:
- Integrate with WebTest. zope.testbrowser.webtest.Browser is a new
Browser implementation that uses webtest.TestApp to drive a WSGI
application. This allows simple and direct testing of WSGI applications.
- Re-write the test application as a pure WSGI application using WebOb.
Run the existing tests using the WebTest based Browser
- Move zope.app.testing based Browser into zope.app.testing (leaving
backwards compatibility imports in-place).
This refactoring removes these test dependencies from zope.testbroswer:
zope.app.appsetup
zope.app.publication
zope.app.testing >= 3.8.1
zope.browserpage
zope.browserresource
zope.component
zope.container
zope.principalregistry
zope.ptresource
zope.publisher
zope.security
zope.site
zope.traversing
And adds these:
zope.pagetemplate
WebTest
zope.app.testing gains this dependency:
zope.testbrowser >= 4.0.0dev
This is a very big change, so I would appreciate anyone who would take a
look at these branches before I merge:
svn+ssh://svn.zope.org/repos/main/zope.testbrowser/branches/jinty-webtest3
svn+ssh://svn.zope.org/repos/main/zope.app.testing/branches/jinty-testbrowser
I plan to merge the branches in the next few weeks if there are no
objections.
--
Brian Sutherland
More information about the Zope-Dev
mailing list