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:
parent
775316747c
commit
b3c15038da
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user