Skip to content
New issue

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

Upgrade Werkzeug library for testing #2623

Merged
merged 2 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ translationstring==1.4
typing_extensions==4.9.0
venusian==3.1.0
WebOb==1.8.7
Werkzeug==0.16.1
Werkzeug==3.0.3
wrapt==1.16.0
zipp==3.17.0
zope.deprecation==5.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@

import pyramid.httpexceptions as exc
from pyramid.response import Response
from werkzeug.test import Client

# opentelemetry-instrumentation-pyramid uses werkzeug==0.16.1 which has
# werkzeug.wrappers.BaseResponse. This is not the case for newer versions of
# werkzeug like the one lint uses.
from werkzeug.wrappers import BaseResponse # pylint: disable=no-name-in-module
from werkzeug.test import Client, TestResponse


class InstrumentationTest:
Expand Down Expand Up @@ -77,4 +72,4 @@ def excluded2_endpoint(request):
)

# pylint: disable=attribute-defined-outside-init
self.client = Client(config.make_wsgi_app(), BaseResponse)
self.client = Client(config.make_wsgi_app(), TestResponse)