We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
werkzeug>=3.1
Describe the bug Hey, pytest flask fixtures are currently incompatible with the newer werkzeug releases.
werkzeug
self = <FlaskClient <Flask 'click_api.app'>> args = (<Flask 'click_api.app'>, <class 'pytest_flask.plugin.<class 'pytest_flask.plugin.JSONResponse'>'>) kwargs = {'use_cookies': True} def __init__(self, *args: t.Any, **kwargs: t.Any) -> None: super().__init__(*args, **kwargs) self.preserve_context = False self._new_contexts: t.List[t.ContextManager[t.Any]] = [] self._context_stack = ExitStack() self.environ_base = { "REMOTE_ADDR": "127.0.0.1", > "HTTP_USER_AGENT": f"werkzeug/{werkzeug.__version__}", } E AttributeError: module 'werkzeug' has no attribute '__version__' __class__ = <class 'flask.testing.FlaskClient'> args = (<Flask 'click_api.app'>, <class 'pytest_flask.plugin.<class 'pytest_flask.plugin.JSONResponse'>'>) kwargs = {'use_cookies': True} self = <FlaskClient <Flask 'click_api.app'>> /opt/python/lib/python3.11/site-packages/flask/testing.py:116: AttributeError
To Reproduce Steps to reproduce the behavior:
docker run python:3.11-slim bash
python -m pip install -U pytest-flask requests werkzeug
client
@pytest.mark.unit def werk_test(client): assert client
Expected behavior Either compatibility with the newest werkzeug version or pin to an older one.
Environment (please complete the following information):
1.3.0
3.1.3
Thanks a lot! Let me know if I can be any of help.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Hey, pytest flask fixtures are currently incompatible with the newer
werkzeug
releases.To Reproduce
Steps to reproduce the behavior:
docker run python:3.11-slim bash
python -m pip install -U pytest-flask requests werkzeug
client
fixture. E.g. set up minimalistic app according to the package readme and create a test like that:Expected behavior
Either compatibility with the newest
werkzeug
version or pin to an older one.Environment (please complete the following information):
1.3.0
3.1.3
Thanks a lot! Let me know if I can be any of help.
The text was updated successfully, but these errors were encountered: