开发者

searching a wsgi testing plugin in python

开发者 https://www.devze.com 2023-01-24 13:10 出处:网络
i was wondering what you\'r using to test your python wsgi apps and which one is the most updated and easiest to setup.

i was wondering what you'r using to test your python wsgi apps and which one is the most updated and easiest to setup.

im on appengine python and i would like to start writing tests fo开发者_StackOverflow中文版r my handlers.

i've see gaeunit and nose-gae and if there are some more out there and what you think about them.


I use webtest with nose-gae. While it doesn't emulate javascript, it is a great way to exercise each handler in your app, and has nice support for forms too.

For more detail testing of each edge case, I would factor our utilities / model related logic from the handlers and write tests for those separately. But it is nice to have some end to end tests, and webtest works great for that.

0

精彩评论

暂无评论...
验证码 换一张
取 消