mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-28 16:07:37 +00:00
unit tests (modules): use f-strings (#10992)
* unit tests (modules): use f-strings * Apply suggestions from code review
This commit is contained in:
parent
f6781f654e
commit
e177d1e61a
33 changed files with 140 additions and 159 deletions
|
|
@ -56,7 +56,7 @@ class TestGitlabProjectAccessToken(GitlabModuleTestCase):
|
|||
def setUp(self):
|
||||
super(TestGitlabProjectAccessToken, self).setUp()
|
||||
if not python_gitlab_version_match_requirement():
|
||||
self.skipTest("python-gitlab %s+ is needed for gitlab_project_access_token" % ",".join(map(str, PYTHON_GITLAB_MINIMAL_VERSION)))
|
||||
self.skipTest(f"python-gitlab {'.'.join(map(str, PYTHON_GITLAB_MINIMAL_VERSION))}+ is needed for gitlab_project_access_token")
|
||||
|
||||
self.moduleUtil = GitLabProjectAccessToken(module=self.mock_module, gitlab_instance=self.gitlab_instance)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue