How to locally unit test python 3 app engine application?

…衆ロ難τιáo~ 提交于 2020-02-24 14:35:18

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/58239037/how-to-locally-unit-test-python-3-app-engine-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!