mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
fix tests on old python version
This commit is contained in:
parent
b25eeb66a1
commit
f2a80ffa3d
2 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ class FdroidTest(unittest.TestCase):
|
|||
with mock.patch('fdroidserver.init.main', co):
|
||||
with mock.patch('sys.exit', lambda x: None):
|
||||
fdroidserver.__main__.main()
|
||||
co.assert_called_once()
|
||||
co.assert_called_once_with()
|
||||
|
||||
def test_call_deploy(self):
|
||||
co = mock.Mock()
|
||||
|
|
@ -60,7 +60,7 @@ class FdroidTest(unittest.TestCase):
|
|||
with mock.patch('fdroidserver.server.main', co):
|
||||
with mock.patch('sys.exit', lambda x: None):
|
||||
fdroidserver.__main__.main()
|
||||
co.assert_called_once()
|
||||
co.assert_called_once_with()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue