1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-02-04 07:51:50 +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:
Alexei Znamensky 2025-10-27 11:08:33 +13:00 committed by GitHub
parent f6781f654e
commit e177d1e61a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 140 additions and 159 deletions

View file

@ -143,7 +143,7 @@ def test_clean_data_removes_extraneous_fields():
}
expected = {"id": "cred1", "description": "test"}
result = jenkins_credential.clean_data(data)
assert result == expected, "Expected {}, got {}".format(expected, result)
assert result == expected, f"Expected {expected}, got {result}"
@patch(