pytest-dev / pytest-flask

A set of pytest fixtures to test Flask applications
http://pytest-flask.readthedocs.org/en/latest/
MIT License
485 stars 90 forks source link

Flask 3.0.0 compatibility #186

Closed SebasRiosR closed 10 months ago

SebasRiosR commented 10 months ago

Describe the bug Due to a vulnerability I need to update the flask version to 3.0.0. However, when I updated the dependency I started getting the following error:

cannot import name '_request_ctx_stack' from 'flask'

I did some checking and found that this Flask property or function was already deprecated

To Reproduce Steps to reproduce the behavior:

  1. Update Flask to 3.0.0
  2. Run the tests

In my project I am using Pytest-flask's:

Expected behavior Run tests without errors.

Screenshots

image

Environment (please complete the following information):