How can I unit test responses from the webapp WSGI application in Google App Engine?

后端 未结 2 1690
醉梦人生
醉梦人生 2020-12-13 21:38

I\'d like to unit test responses from the Google App Engine webapp.WSGIApplication, for example request the url \'/\' and test that the responses status code is 200, using G

2条回答
  •  暖寄归人
    2020-12-13 22:34

    Actually WebTest does work within the sandbox, as long as you comment out

    import webbrowser
    

    in webtest/__init__.py

提交回复
热议问题