Hi all, I've made py.test work with the twisted framework using greenlets to switch between twisted's mainloop and py.test's "mainloop". (see attached file). It currently uses monkeypatching to change py.test.Item's execute function. Currently missing is the ability to return twisted deferreds from setup and teardown methods. I could monkeypatch py.test even more, but I'd rather have a method to hook into py.test, and intercept any calls to user supplied functions (i.e. teardown, setup, and test methods). Any chance to get such changes integrated into py.test? I'd be willing to write them on my own and would also be glad to have the py.test.twisted script be included into py.test.
- Ralf
py.test.twisted
Description: Binary data
_______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev