From e22d1bbb8486d4ced4516f4cfa0fc1731027f97a Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:48:13 -0800 Subject: [PATCH] lint --- .../tests/test_fastapi_instrumentation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py b/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py index b093c0dcc3..fda2b32e7a 100644 --- a/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py +++ b/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py @@ -171,7 +171,9 @@ def setUp(self): self._app = self._create_app() self._app.add_middleware(HTTPSRedirectMiddleware) self._client = TestClient(self._app, base_url="https://testserver:443") - self._client.__enter__() # noqa: C2801 # run the lifespan, initialize the middleware stack + # run the lifespan, initialize the middleware stack + # this is more in-line with what happens in a real application when the server starts up + self._client.__enter__() # pylint: disable=unnecessary-dunder-call def tearDown(self): super().tearDown()