Fixed API test case after upgrading Flask to v2.

This commit is contained in:
Akshay Joshi 2021-11-24 17:58:29 +05:30
parent 3dcee71a92
commit bce7e8346d

View File

@ -99,7 +99,8 @@ class TestClient(testing.FlaskClient):
# ask Flask to save that value to the cookie jar in the test
# client. This is where we actually use that request shim we
# made!
self.app.save_session(flask.session, request)
self.app.session_interface.save_session(
self.app, flask.session, request)
return csrf_token