From 781dac1bb5429beba99580a4f1118224ef46b6a1 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Mon, 19 Feb 2024 11:52:22 -0500 Subject: [PATCH] fix lint f-string --- tests/functional/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/functional/utils.py b/tests/functional/utils.py index c7eb57a75..ad54db5dd 100644 --- a/tests/functional/utils.py +++ b/tests/functional/utils.py @@ -439,8 +439,10 @@ def _try_get_logs(self, status_url): return "" def fully_qualified_test_process_name(self, name=""): - name = fully_qualified_name(self) + "." + self._testMethodName + (f"-{name}" if name else "") - return name.replace(".", "-") + extra_name = f"-{name}" if name else "" + class_name = fully_qualified_name(self) + test_name = f"{class_name}.{self._testMethodName}{extra_name}".replace(".", "-") + return test_name def monitor_job(self, status_url, # type: str