Fix coverage problems
This commit is contained in:
@@ -20,7 +20,10 @@ exclude_lines =
|
|||||||
raise TypeError
|
raise TypeError
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
warnings.warn
|
warnings.warn
|
||||||
|
logger.debug
|
||||||
|
logger.info
|
||||||
logger.warning
|
logger.warning
|
||||||
|
logger.error
|
||||||
return NotHandled
|
return NotHandled
|
||||||
|
|
||||||
# Don't complain if non-runnable code isn't run:
|
# Don't complain if non-runnable code isn't run:
|
||||||
|
|||||||
@@ -97,6 +97,8 @@ class EndpointEnumerator(_EndpointEnumerator):
|
|||||||
namespace="%s:%s" % (namespace, pattern.namespace) if namespace else pattern.namespace
|
namespace="%s:%s" % (namespace, pattern.namespace) if namespace else pattern.namespace
|
||||||
)
|
)
|
||||||
api_endpoints.extend(nested_endpoints)
|
api_endpoints.extend(nested_endpoints)
|
||||||
|
else:
|
||||||
|
logger.warning("unknown pattern type {}".format(type(pattern)))
|
||||||
|
|
||||||
api_endpoints = sorted(api_endpoints, key=endpoint_ordering)
|
api_endpoints = sorted(api_endpoints, key=endpoint_ordering)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user