@@ -338,18 +338,18 @@ def get_schema(self, request=None, public=False):
338338
339339 components_schemas .update (components )
340340
341- if hasattr (view .schema , 'get_security_schemes' ):
341+ if hasattr (view .schema , 'get_security_schemes' ): # pragma: no cover
342342 security_schemes = view .schema .get_security_schemes (path , method )
343343 else :
344344 security_schemes = {}
345- for k in security_schemes .keys ():
345+ for k in security_schemes .keys (): # pragma: no cover
346346 if k not in security_schemes_schemas :
347347 continue
348348 if security_schemes_schemas [k ] == security_schemes [k ]:
349349 continue
350350 warnings .warn ('Securit scheme component "{}" has been overriden with a different '
351351 'value.' .format (k ))
352- security_schemes_schemas .update (security_schemes )
352+ security_schemes_schemas .update (security_schemes ) # pragma: no cover
353353
354354 if hasattr (view , 'action' ):
355355 view .action = current_action
@@ -367,7 +367,7 @@ def get_schema(self, request=None, public=False):
367367 schema ['paths' ] = paths
368368 schema ['components' ] = self .jsonapi_components
369369 schema ['components' ]['schemas' ].update (components_schemas )
370- if len (security_schemes_schemas ) > 0 :
370+ if len (security_schemes_schemas ) > 0 : # pragma: no cover
371371 schema ['components' ]['securitySchemes' ] = security_schemes_schemas
372372
373373 return schema
@@ -475,7 +475,7 @@ def get_operation(self, path, method, action=None):
475475 operation = {}
476476 operation ['operationId' ] = self .get_operation_id (path , method )
477477 operation ['description' ] = self .get_description (path , method )
478- if hasattr (self , 'get_security_requirements' ):
478+ if hasattr (self , 'get_security_requirements' ): # pragma: no cover
479479 security = self .get_security_requirements (path , method )
480480 if security is not None :
481481 operation ['security' ] = security
0 commit comments