diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-11-09 11:22:02 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2021-11-09 13:21:47 +0100 |
commit | 17739d718901a10f7ec0aaf9a6d53141294a347d (patch) | |
tree | a98e6d09a42016ceec90713adac681918a4a9c62 /xtesting/core/vnf.py | |
parent | 92681911699428a87ea56c0263832b96a93da3da (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/core/vnf.py')
-rw-r--r-- | xtesting/core/vnf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xtesting/core/vnf.py b/xtesting/core/vnf.py index 72d54b51..c3bc4322 100644 --- a/xtesting/core/vnf.py +++ b/xtesting/core/vnf.py @@ -44,13 +44,13 @@ class VnfOnBoarding(testcase.TestCase): def __init__(self, **kwargs): super().__init__(**kwargs) self.uuid = uuid.uuid4() - self.user_name = "{}-{}".format(self.case_name, self.uuid) - self.tenant_name = "{}-{}".format(self.case_name, self.uuid) + self.user_name = f"{self.case_name}-{self.uuid}" + self.tenant_name = f"{self.case_name}-{self.uuid}" self.snaps_creds = {} self.created_object = [] self.os_project = None - self.tenant_description = "Created by OPNFV Functest: {}".format( - self.case_name) + self.tenant_description = ( + f"Created by OPNFV Functest: {self.case_name}") def run(self, **kwargs): """ |