1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

style: fix lint

This commit is contained in:
proletarius101 2024-02-15 23:31:35 +08:00 committed by Hans-Christoph Steiner
parent 775316747c
commit b3c15038da

View File

@ -936,9 +936,7 @@ class DeployTest(unittest.TestCase):
call_iteration += 1
return 0
with mock.patch(
'subprocess.call', side_effect=update_servergitmirrors_call
):
with mock.patch('subprocess.call', side_effect=update_servergitmirrors_call):
fdroidserver.deploy.update_servergitmirrors([], repo_section)
self.assertEqual(call_iteration, 1, 'expected 1 invocations of subprocess.call')
@ -971,7 +969,6 @@ class DeployTest(unittest.TestCase):
with fake_index.open('w') as fp:
fp.write('not an index, but has the right filename')
def update_servergitmirrors_call(cmd):
nonlocal call_iteration
if call_iteration == 0:
@ -1005,9 +1002,7 @@ class DeployTest(unittest.TestCase):
call_iteration += 1
return 0
with mock.patch(
'subprocess.call', side_effect=update_servergitmirrors_call
):
with mock.patch('subprocess.call', side_effect=update_servergitmirrors_call):
fdroidserver.deploy.update_servergitmirrors([], repo_section)
self.assertEqual(call_iteration, 1, 'expected 1 invocations of subprocess.call')