mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 01:11:28 +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
|
|
@ -197,7 +197,7 @@ def test_create_cpg(mock_client):
|
|||
8,
|
||||
'MAG',
|
||||
'FC'
|
||||
) == (True, True, "Created CPG %s successfully." % 'test_cpg')
|
||||
) == (True, True, "Created CPG test_cpg successfully.")
|
||||
|
||||
mock_client.HPE3ParClient.cpgExists.return_value = True
|
||||
assert ss_3par_cpg.create_cpg(mock_client.HPE3ParClient,
|
||||
|
|
@ -235,7 +235,7 @@ def test_delete_cpg(mock_client):
|
|||
|
||||
assert ss_3par_cpg.delete_cpg(mock_client.HPE3ParClient,
|
||||
'test_cpg'
|
||||
) == (True, True, "Deleted CPG %s successfully." % 'test_cpg')
|
||||
) == (True, True, "Deleted CPG test_cpg successfully.")
|
||||
|
||||
mock_client.HPE3ParClient.cpgExists.return_value = False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue