Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何使用https运行WebTest请求?_Python_Google App Engine_Webtest - Fatal编程技术网

Python 如何使用https运行WebTest请求?

Python 如何使用https运行WebTest请求?,python,google-app-engine,webtest,Python,Google App Engine,Webtest,我将Python与Google App Engine wsgi应用程序一起使用。我的问题是,我无法理解如何使用WebTest执行https请求。我需要执行https请求以测试我的身份验证流 对于https,是否有其他参数应该传递给此 app.get('/path', [params], [headers], [extra_environ], ...) 另外,我似乎已经找到了文档(顶部链接),但我想知道API参考规范在哪里。谢谢。你的思维水平不对。无论是否使用SSL,webtest都不会发出任何

我将Python与Google App Engine wsgi应用程序一起使用。我的问题是,我无法理解如何使用WebTest执行https请求。我需要执行https请求以测试我的身份验证流

对于https,是否有其他参数应该传递给此

app.get('/path', [params], [headers], [extra_environ], ...)

另外,我似乎已经找到了文档(顶部链接),但我想知道API参考规范在哪里。谢谢。

你的思维水平不对。无论是否使用SSL,webtest都不会发出任何真正的HTTP请求:它直接与WSGI应用程序通信。网络连接是否安全取决于客户端和服务器之间,与WSGI应用程序无关;你不能用webtest这样的工具来测试它

也就是说,webtest的API文档是