Open pbsds opened 12 months ago
I fixed the cookie jar ones but I can't figure out what is wrong with the other ones. This is a big blocker for me unfortunately, really trying to figure out how to update this package to support Werkzeug 3...
If it helps I think the test issues are around with self.app.test_client() as client
, in the latest flask updates there is a big issue with stacks in flask, you can no longer rely on them just having the newest client on top, so when you grab test_client()
it can be returning one from a prior test setup... kind of ridiculous but I don't totally understand the reasoning behind the changes.
I hid my comments as off topic because I learned my upgrade issues were NOT caused by flask-seasurf but by some flask-oauthlib residual code that was wrong, if anyone else lands here, look for headers["Authorization"] = request.authorization
and change it to headers["Authorization"] = request.authorization.to_header()
because the object type of request.authorization
has changed in werkzeug >=2.3