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 _(*_):
20302030        )
20312031
20322032
2033+ # pylint: disable=attribute-defined-outside-init 
20332034class  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 )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments