mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 20:30:17 -06:00
Fixed API test case after upgrading Flask to v2.
This commit is contained in:
1 parent
3dcee71a92
commit
bce7e8346d
1 file changed
+2
-1
@@ -99,7 +99,8 @@ class TestClient(testing.FlaskClient):
|
|||||||
# ask Flask to save that value to the cookie jar in the test
|
# ask Flask to save that value to the cookie jar in the test
|
||||||
# client. This is where we actually use that request shim we
|
# client. This is where we actually use that request shim we
|
||||||
# made!
|
# made!
|
||||||
self.app.save_session(flask.session, request)
|
self.app.session_interface.save_session(
|
||||||
|
self.app, flask.session, request)
|
||||||
|
|
||||||
return csrf_token
|
return csrf_token
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user