aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv_testapi/resources
diff options
context:
space:
mode:
Diffstat (limited to 'opnfv_testapi/resources')
-rw-r--r--opnfv_testapi/resources/result_handlers.py4
-rw-r--r--opnfv_testapi/resources/scenario_models.py8
2 files changed, 6 insertions, 6 deletions
diff --git a/opnfv_testapi/resources/result_handlers.py b/opnfv_testapi/resources/result_handlers.py
index b8d166c..38109ad 100644
--- a/opnfv_testapi/resources/result_handlers.py
+++ b/opnfv_testapi/resources/result_handlers.py
@@ -273,8 +273,8 @@ class ResultsUploadHandler(ResultsCLHandler):
self.json_args = json.loads(result).copy()
# the result files used in the first release of OVP did not
# specify an OVP version
- if (self.json_args['version'] == 'master' or
- self.json_args['version'] == 'unknown'):
+ if (self.json_args['version'] == 'master'
+ or self.json_args['version'] == 'unknown'):
version = '2018.01'
else:
version = self.json_args['version']
diff --git a/opnfv_testapi/resources/scenario_models.py b/opnfv_testapi/resources/scenario_models.py
index 467cff2..ca820cd 100644
--- a/opnfv_testapi/resources/scenario_models.py
+++ b/opnfv_testapi/resources/scenario_models.py
@@ -50,10 +50,10 @@ class ScenarioProject(models.ModelBase):
'trust_indicators': ScenarioTI}
def __eq__(self, other):
- return [self.project == other.project and
- self._customs_eq(other) and
- self._scores_eq(other) and
- self._ti_eq(other)]
+ return [self.project == other.project
+ and self._customs_eq(other)
+ and self._scores_eq(other)
+ and self._ti_eq(other)]
def __ne__(self, other):
return not self.__eq__(other)