aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/tests/unit/core/test_robotframework.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2021-11-09 11:22:02 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2021-11-09 13:21:47 +0100
commit17739d718901a10f7ec0aaf9a6d53141294a347d (patch)
treea98e6d09a42016ceec90713adac681918a4a9c62 /xtesting/tests/unit/core/test_robotframework.py
parent92681911699428a87ea56c0263832b96a93da3da (diff)
Leverage latest pylint features
It adds encoding in all open call and leverage f-strings. Change-Id: I70ccd2bfcadae44929d5874f98fa3bf4ff644488 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/tests/unit/core/test_robotframework.py')
-rw-r--r--xtesting/tests/unit/core/test_robotframework.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/xtesting/tests/unit/core/test_robotframework.py b/xtesting/tests/unit/core/test_robotframework.py
index bc05f523..f36625e6 100644
--- a/xtesting/tests/unit/core/test_robotframework.py
+++ b/xtesting/tests/unit/core/test_robotframework.py
@@ -140,9 +140,9 @@ class GenerateReportTesting(unittest.TestCase):
args[0].assert_called_once_with(self.test.xml_file)
args[1].assert_called_once_with(args[0].return_value)
args[2].assert_called_once_with(
- report='{}/report.html'.format(self.test.res_dir),
- log='{}/log.html'.format(self.test.res_dir),
- xunit='{}/xunit.xml'.format(self.test.res_dir))
+ report=f'{self.test.res_dir}/report.html',
+ log=f'{self.test.res_dir}/log.html',
+ xunit=f'{self.test.res_dir}/xunit.xml')
@mock.patch('robot.reporting.resultwriter.ResultWriter.write_results',
return_value=0)
@@ -154,9 +154,9 @@ class GenerateReportTesting(unittest.TestCase):
args[0].assert_called_once_with(self.test.xml_file)
args[1].assert_called_once_with(args[0].return_value)
args[2].assert_called_once_with(
- report='{}/report.html'.format(self.test.res_dir),
- log='{}/log.html'.format(self.test.res_dir),
- xunit='{}/xunit.xml'.format(self.test.res_dir))
+ report=f'{self.test.res_dir}/report.html',
+ log=f'{self.test.res_dir}/log.html',
+ xunit=f'{self.test.res_dir}/xunit.xml')
class RunTesting(unittest.TestCase):