在Google App Engine上开发Python时,应该使用什么模拟对象框架? [英] What mock object framework should I use when developing in Python on the Google App Engine?

查看:152
本文介绍了在Google App Engine上开发Python时,应该使用什么模拟对象框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Python在Google App Engine上开发应用程序(而Django,如果重要)。

I am developing an application on the Google App Engine using Python (and Django, if that matters).

我应该帮助哪个模拟对象框架来协助单位测试?我看到有一些独立的项目(即 http://python-mock.sourceforge.net ) ,但我不知道是否有内置的东西可以使用。

Which mock object framework should I help to assist with unit tests? I see there are a number of standalone projects (i.e. http://python-mock.sourceforge.net), but I'm not sure if there's something built-in that I can use.

任何想法?

推荐答案

我们广泛使用这个模拟库并非常高兴。它是小而简单和富有表现力的。

We use this mock library extensively and very happy with it. It is small, simple and expressive.

是的,标准Python库中没有模拟框架。

And yes, there is no mock-framework in the standard Python library.

这篇关于在Google App Engine上开发Python时,应该使用什么模拟对象框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆