mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 21:56:07 +08:00
Upgrade Werkzeug library for testing (#2623)
This commit is contained in:
@ -17,7 +17,7 @@ translationstring==1.4
|
|||||||
typing_extensions==4.9.0
|
typing_extensions==4.9.0
|
||||||
venusian==3.1.0
|
venusian==3.1.0
|
||||||
WebOb==1.8.7
|
WebOb==1.8.7
|
||||||
Werkzeug==0.16.1
|
Werkzeug==3.0.3
|
||||||
wrapt==1.16.0
|
wrapt==1.16.0
|
||||||
zipp==3.17.0
|
zipp==3.17.0
|
||||||
zope.deprecation==5.0
|
zope.deprecation==5.0
|
||||||
|
@ -14,12 +14,7 @@
|
|||||||
|
|
||||||
import pyramid.httpexceptions as exc
|
import pyramid.httpexceptions as exc
|
||||||
from pyramid.response import Response
|
from pyramid.response import Response
|
||||||
from werkzeug.test import Client
|
from werkzeug.test import Client, TestResponse
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
|
|
||||||
class InstrumentationTest:
|
class InstrumentationTest:
|
||||||
@ -77,4 +72,4 @@ class InstrumentationTest:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# pylint: disable=attribute-defined-outside-init
|
# pylint: disable=attribute-defined-outside-init
|
||||||
self.client = Client(config.make_wsgi_app(), BaseResponse)
|
self.client = Client(config.make_wsgi_app(), TestResponse)
|
||||||
|
Reference in New Issue
Block a user