Fixed API test case after upgrading Flask to v2.

pull/63/head
Akshay Joshi 2021-11-24 17:58:29 +05:30
parent 3dcee71a92
commit bce7e8346d
1 changed files with 2 additions and 1 deletions

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