mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 14:10:05 -05: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
|
||||
# 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
|
||||
|
||||
|
||||
Reference in new issue
Block a user