What mock object framework should I use when devel

2019-03-30 05:46发布

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

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.

Any ideas?

1条回答
爷、活的狠高调
2楼-- · 2019-03-30 06:31

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

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

查看更多
登录 后发表回答