mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-19 18:31:33 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
|
|
@ -11,14 +11,13 @@ from ansible_collections.community.general.plugins.modules import apk
|
|||
|
||||
|
||||
class TestApkQueryLatest(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.module_names = [
|
||||
'bash',
|
||||
'g++',
|
||||
"bash",
|
||||
"g++",
|
||||
]
|
||||
|
||||
@mock.patch('ansible_collections.community.general.plugins.modules.apk.AnsibleModule')
|
||||
@mock.patch("ansible_collections.community.general.plugins.modules.apk.AnsibleModule")
|
||||
def test_not_latest(self, mock_module):
|
||||
apk.APK_PATH = [""]
|
||||
for module_name in self.module_names:
|
||||
|
|
@ -27,7 +26,7 @@ class TestApkQueryLatest(unittest.TestCase):
|
|||
command_result = apk.query_latest(mock_module, module_name)
|
||||
self.assertFalse(command_result)
|
||||
|
||||
@mock.patch('ansible_collections.community.general.plugins.modules.apk.AnsibleModule')
|
||||
@mock.patch("ansible_collections.community.general.plugins.modules.apk.AnsibleModule")
|
||||
def test_latest(self, mock_module):
|
||||
apk.APK_PATH = [""]
|
||||
for module_name in self.module_names:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue