mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-06 20:17:15 +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
|
|
@ -20,7 +20,7 @@ def mock_ov_client():
|
|||
|
||||
@pytest.fixture
|
||||
def mock_ansible_module():
|
||||
patcher_ansible = patch(ONEVIEW_MODULE_UTILS_PATH + '.AnsibleModule')
|
||||
patcher_ansible = patch(f"{ONEVIEW_MODULE_UTILS_PATH}.AnsibleModule")
|
||||
patcher_ansible = patcher_ansible.start()
|
||||
ansible_module = Mock()
|
||||
patcher_ansible.return_value = ansible_module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue