mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-07 12:37:17 +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
|
|
@ -155,7 +155,7 @@ def test__get_json_data(mocker):
|
|||
jenkins_plugin = JenkinsPlugin(module)
|
||||
|
||||
json_data = jenkins_plugin._get_json_data(
|
||||
"{url}".format(url=GITHUB_DATA['url']),
|
||||
f"{GITHUB_DATA['url']}",
|
||||
'CSRF')
|
||||
|
||||
assert isinstance(json_data, Mapping)
|
||||
|
|
@ -191,7 +191,7 @@ def test__new_fallback_urls(mocker):
|
|||
|
||||
|
||||
def isInList(l, i):
|
||||
print("checking if %s in %s" % (i, l))
|
||||
print(f"checking if {i} in {l}")
|
||||
for item in l:
|
||||
if item == i:
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue