Skip to content

Commit 33ad22f

Browse files
committed
give up and shut up pylint
1 parent f6bcc9b commit 33ad22f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,10 +2030,11 @@ async def _(*_):
20302030
)
20312031

20322032

2033+
# pylint: disable=attribute-defined-outside-init
20332034
class TestFastAPIFallback(TestBaseFastAPI):
20342035
@pytest.fixture(autouse=True)
2035-
def _inject_fixtures(self, caplog):
2036-
self._caplog = caplog
2036+
def inject_fixtures(self, caplog):
2037+
self.caplog = caplog
20372038

20382039
@staticmethod
20392040
def _create_fastapi_app():
@@ -2059,7 +2060,7 @@ def test_no_instrumentation(self):
20592060

20602061
errors = [
20612062
record
2062-
for record in self._caplog.get_records("call")
2063+
for record in self.caplog.get_records("call")
20632064
if record.levelno >= logging.ERROR
20642065
]
20652066
self.assertEqual(len(errors), 1)

0 commit comments

Comments
 (0)