unit tests (modules): use f-strings (#10992)

* unit tests (modules): use f-strings

* Apply suggestions from code review
This commit is contained in:
Alexei Znamensky
2025-10-27 11:08:33 +13:00
committed by GitHub
parent f6781f654e
commit e177d1e61a
33 changed files with 140 additions and 159 deletions

View File

@@ -38,7 +38,7 @@ class JenkinsBuildMock():
response["result"] = "ABSENT"
return response
except Exception as e:
fail_json(msg='Unable to fetch build information, {0}'.format(e))
fail_json(msg=f'Unable to fetch build information, {e}')
class JenkinsMock():