eve icon indicating copy to clipboard operation
eve copied to clipboard

Tests fail with Flask 2.2

Open nicolaiarocci opened this issue 2 years ago • 2 comments

Since Flask 2.2, all tests relying on app.add_url_rule are failing. Flask changelogfor v2.2 reports significant changes.

For the time being, I'm pinning Flask dependency to <2.2.

Anybody willing to take up this task?

nicolaiarocci avatar Sep 03 '22 14:09 nicolaiarocci

The problem is that the setUp of TestBase uses the test_client, and then after, we modify the application.

A possible solution would be to remove the logic that makes those calls on the setUp, and then call those manually when needed per test basis. Can I proceed with this?

Kludex avatar Oct 12 '22 11:10 Kludex

yes please

nicolaiarocci avatar Oct 13 '22 12:10 nicolaiarocci