Skip to content

Commit 7be29f3

Browse files
committedApr 7, 2023
lint
1 parent e573fea commit 7be29f3

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed
 

Diff for: ‎instrumentation/opentelemetry-instrumentation-flask/tests/test_copy_context.py

+6-11
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
1514
import flask
16-
from werkzeug.test import Client
17-
from werkzeug.wrappers import Response
18-
1915
from opentelemetry.instrumentation.flask import FlaskInstrumentor
2016
from opentelemetry.test.wsgitestutil import WsgiTestBase
17+
from werkzeug.test import Client
18+
from werkzeug.wrappers import Response
2119

22-
# pylint: disable=import-error
2320
from .base_test import InstrumentationTest
2421

2522

@@ -41,12 +38,10 @@ def test_copycontext(self):
4138
copied via `flask.copy_current_request_context`
4239
"""
4340
self.app = flask.Flask(__name__)
44-
self.app.route("/copy_context")(
45-
self._copy_context_endpoint
46-
)
41+
self.app.route("/copy_context")(self._copy_context_endpoint)
4742
client = Client(self.app, Response)
48-
resp = client.get("/copy_context", headers={'x-req': 'a-header'})
43+
resp = client.get("/copy_context", headers={"x-req": "a-header"})
4944

5045
self.assertEqual(200, resp.status_code)
51-
self.assertEqual('/copy_context', resp.json['span_name'])
52-
self.assertEqual('a-header', resp.json['request_header'])
46+
self.assertEqual("/copy_context", resp.json["span_name"])
47+
self.assertEqual("a-header", resp.json["request_header"])

0 commit comments

Comments
 (0)