The other possibility is passing a whole WSGI environment to the request_context() method: with app.request_context(environ): assert request.method == 'POST ...
確定! 回上一頁