Re: zope.testbrowser and WebTest
Jim Fulton <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Dec 15, 2010 at 8:06 AM, Brian Sutherland <[email protected]> wrote: > Hi, > > I've committed a WebTest integration with testbrowser to a > "jinty-webtest" branch. It basically uses WebTest as a backend to drive > a WSGI application. > > This feature makes it possible to do this in a test: > > >>> app = make_my_wsgi_app() > >>> from webtest import TestApp > >>> from zope.testbrowser.wsgi import Browser > >>> browser = Browser(TestApp(app)) > > And then use the browser as normal. > > I've managed to get the existing tests to run against this browser with > two new testing dependencies: > WebTest > zope.app.wsgi > > If anyone objects to this feature, or wants to review it before > I merge, please let me know. I will definitely fix the documentation and > remaining test failure before merging. I'm not volunteering to review :), but this enhancement sounds great! Jim -- Jim Fulton _______________________________________________ Zope-Dev maillist - [email protected] https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )