File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
instrumentation/opentelemetry-instrumentation-fastapi/tests Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2030,10 +2030,11 @@ async def _(*_):
2030
2030
)
2031
2031
2032
2032
2033
+ # pylint: disable=attribute-defined-outside-init
2033
2034
class TestFastAPIFallback (TestBaseFastAPI ):
2034
2035
@pytest .fixture (autouse = True )
2035
- def _inject_fixtures (self , caplog ):
2036
- self ._caplog = caplog
2036
+ def inject_fixtures (self , caplog ):
2037
+ self .caplog = caplog
2037
2038
2038
2039
@staticmethod
2039
2040
def _create_fastapi_app ():
@@ -2059,7 +2060,7 @@ def test_no_instrumentation(self):
2059
2060
2060
2061
errors = [
2061
2062
record
2062
- for record in self ._caplog .get_records ("call" )
2063
+ for record in self .caplog .get_records ("call" )
2063
2064
if record .levelno >= logging .ERROR
2064
2065
]
2065
2066
self .assertEqual (len (errors ), 1 )
You can’t perform that action at this time.
0 commit comments