1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-20 02:39:02 +00:00

Reformat everything.

This commit is contained in:
Felix Fontein 2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View file

@ -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: