aboutsummaryrefslogtreecommitdiffstats
path: root/functest_kubernetes/rally/rally_kubernetes.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-11-15 15:13:46 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2021-11-15 15:14:11 +0100
commite3c09959d8639b6e798759bb74e98a752b98b7f4 (patch)
tree587a31b2b9f88b2935ffb26ebdbd1f1511d329f0 /functest_kubernetes/rally/rally_kubernetes.py
parentb100b1254e06719bf1c779b9d53d0ac2da67fca4 (diff)
Update linters and fix all new issues
It mostly adds encoding in open calls and leverages f-strings. It removes ansible-lint as it now asks for ansible, roles and collections. Change-Id: I3ef729f44b2c721b14d19df27805938298aa2c67 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest_kubernetes/rally/rally_kubernetes.py')
-rw-r--r--functest_kubernetes/rally/rally_kubernetes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/functest_kubernetes/rally/rally_kubernetes.py b/functest_kubernetes/rally/rally_kubernetes.py
index ef7949ef..ece7aa89 100644
--- a/functest_kubernetes/rally/rally_kubernetes.py
+++ b/functest_kubernetes/rally/rally_kubernetes.py
@@ -88,7 +88,7 @@ class RallyKubernetes(testcase.TestCase):
result = rapi.task.export(
[task_instance["uuid"]], "html",
output_dest=os.path.join(
- self.res_dir, "{}.html".format(self.case_name)))
+ self.res_dir, f"{self.case_name}.html"))
if "files" in result:
for path in result["files"]:
with open(path, "w+", encoding='utf-8') as output:
@@ -96,7 +96,7 @@ class RallyKubernetes(testcase.TestCase):
result = rapi.task.export(
[task_instance["uuid"]], "junit-xml",
output_dest=os.path.join(
- self.res_dir, "{}.xml".format(self.case_name)))
+ self.res_dir, f"{self.case_name}.xml"))
if "files" in result:
for path in result["files"]:
with open(path, "w+", encoding='utf-8') as output: