diff --git a/tests/deploy.TestCase b/tests/deploy.TestCase index 0aafb1c2..dee28340 100755 --- a/tests/deploy.TestCase +++ b/tests/deploy.TestCase @@ -990,9 +990,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') @@ -1025,7 +1023,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: @@ -1059,9 +1056,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')