如何在本地对python 3 App Engine应用程序进行单元测试? [英] How to locally unit test python 3 app engine application?

查看:60
本文介绍了如何在本地对python 3 App Engine应用程序进行单元测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地设置了测试平台,以测试基于python2.7的App Engine应用程序.作为python3迁移活动的一部分,我想知道如何设置App Engine测试平台.由于应用引擎库中的更改,看来我无法使用现有的python2.7测试平台.有人可以帮助我进行设置吗?

I have testbed setup locally to test python2.7 based app engine application. As part of the python3 migration activity, I am wondering how do I setup the app engine testbed. It seems I can't use my existing python2.7 testbed because of the changes in app engine libraries. Can anybody help me in setting it up?

推荐答案

我找不到有关新AppEngine 3环境和测试平台软件包的任何相关文档.根据AppEngine的python文档中的文档,测试平台软件包不属于AppEngine的python 3官方库.

I couldn't find any relevant doc for the new AppEngine 3 environment and the testbed package. According to the documentation in the python docs for AppEngine the testbed package doesn't belong more to the python 3 official libraries for AppEngine.

您可以在此处阅读软件包的内容:

You can read the content of the package here:

https://cloud.google .com/appengine/docs/standard/python/refdocs/google.appengine.ext.testbed

也许如果您将单元测试隔离在可接受的水平,则可以排除远程资源.

Maybe if you isolate your unit tests in a acceptable level, you can exclude the remote resources.

这篇关于如何在本地对python 3 App Engine应用程序进行单元测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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