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
a4247eea0d
commit
f2fcfeabe5
@ -990,9 +990,7 @@ class DeployTest(unittest.TestCase):
|
|||||||
call_iteration += 1
|
call_iteration += 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
with mock.patch(
|
with mock.patch('subprocess.call', side_effect=update_servergitmirrors_call):
|
||||||
'subprocess.call', side_effect=update_servergitmirrors_call
|
|
||||||
):
|
|
||||||
fdroidserver.deploy.update_servergitmirrors([], repo_section)
|
fdroidserver.deploy.update_servergitmirrors([], repo_section)
|
||||||
self.assertEqual(call_iteration, 1, 'expected 1 invocations of subprocess.call')
|
self.assertEqual(call_iteration, 1, 'expected 1 invocations of subprocess.call')
|
||||||
|
|
||||||
@ -1025,7 +1023,6 @@ class DeployTest(unittest.TestCase):
|
|||||||
with fake_index.open('w') as fp:
|
with fake_index.open('w') as fp:
|
||||||
fp.write('not an index, but has the right filename')
|
fp.write('not an index, but has the right filename')
|
||||||
|
|
||||||
|
|
||||||
def update_servergitmirrors_call(cmd):
|
def update_servergitmirrors_call(cmd):
|
||||||
nonlocal call_iteration
|
nonlocal call_iteration
|
||||||
if call_iteration == 0:
|
if call_iteration == 0:
|
||||||
@ -1059,9 +1056,7 @@ class DeployTest(unittest.TestCase):
|
|||||||
call_iteration += 1
|
call_iteration += 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
with mock.patch(
|
with mock.patch('subprocess.call', side_effect=update_servergitmirrors_call):
|
||||||
'subprocess.call', side_effect=update_servergitmirrors_call
|
|
||||||
):
|
|
||||||
fdroidserver.deploy.update_servergitmirrors([], repo_section)
|
fdroidserver.deploy.update_servergitmirrors([], repo_section)
|
||||||
self.assertEqual(call_iteration, 1, 'expected 1 invocations of subprocess.call')
|
self.assertEqual(call_iteration, 1, 'expected 1 invocations of subprocess.call')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user