pytest-dev / pytest-flask

A set of pytest fixtures to test Flask applications

Home Page:http://pytest-flask.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask 3.0.0 compatibility

SebasRiosR opened this issue · comments

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:

  • Annotation @pytest.fixture
  • Run test with pytest -v -s

Expected behavior
Run tests without errors.

Screenshots
image

Environment (please complete the following information):

  • OS: MacOS Ventura 13.6.1
  • Python Version [3.9]
  • pytest-flask version [1.3.0]