Remove pragma no cover from code
Add exclude_lines in the report section of .coveragerc to ignore abstract in test coverage Change-Id: I7863a8ba7e20358fb7cdf3cc7e4d83871a5104ef
This commit is contained in:
@@ -24,5 +24,4 @@ import six
|
||||
class BaseDecisionEngineCommand(object):
|
||||
@abc.abstractmethod
|
||||
def execute(self):
|
||||
raise NotImplementedError(
|
||||
"Should have implemented this") # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@@ -36,4 +36,4 @@ class BaseEventConsumer(object):
|
||||
|
||||
@abc.abstractmethod
|
||||
def execute(self, request_id, context, data):
|
||||
raise NotImplementedError('Not implemented ...') # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@@ -33,5 +33,4 @@ class BasePlanner(object):
|
||||
and performance requirements are met.
|
||||
"""
|
||||
# example: directed acyclic graph
|
||||
raise NotImplementedError(
|
||||
"Should have implemented this") # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@@ -53,10 +53,8 @@ class BaseSolution(object):
|
||||
|
||||
@abc.abstractmethod
|
||||
def add_change_request(self, r):
|
||||
raise NotImplementedError(
|
||||
"Should have implemented this") # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@abc.abstractproperty
|
||||
def actions(self):
|
||||
raise NotImplementedError(
|
||||
"Should have implemented this") # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@@ -24,5 +24,4 @@ import six
|
||||
class BaseSolutionComparator(object):
|
||||
@abc.abstractmethod
|
||||
def compare(self, sol1, sol2):
|
||||
raise NotImplementedError(
|
||||
"Should have implemented this") # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@@ -24,5 +24,4 @@ import six
|
||||
class BaseSolutionEvaluator(object):
|
||||
@abc.abstractmethod
|
||||
def evaluate(self, solution):
|
||||
raise NotImplementedError(
|
||||
"Should have implemented this") # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@@ -24,5 +24,4 @@ import six
|
||||
class BaseStrategyContext(object):
|
||||
@abc.abstractmethod
|
||||
def execute_strategy(self, model):
|
||||
raise NotImplementedError(
|
||||
"Should have implemented this") # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
@@ -24,5 +24,4 @@ import six
|
||||
class BaseSelector(object):
|
||||
@abc.abstractmethod
|
||||
def define_from_goal(self, goal_name):
|
||||
raise NotImplementedError(
|
||||
"Should have implemented this") # pragma:no cover
|
||||
raise NotImplementedError()
|
||||
|
||||
Reference in New Issue
Block a user