在Google App Engine上开发Python时,应该使用什么模拟对象框架? [英] What mock object framework should I use when developing in Python on the Google App Engine?
问题描述
我正在使用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屋!