From f2a80ffa3da98e2711b8c23f2601f0011250903e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20P=C3=B6hn?= Date: Tue, 28 Jan 2020 11:40:58 +0100 Subject: [PATCH] fix tests on old python version --- fdroid | 2 +- tests/main.TestCase | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fdroid b/fdroid index 248282b2..314d2467 100755 --- a/fdroid +++ b/fdroid @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # # fdroid.py - part of the FDroid server tools -# Copyright (C) 2020 Michael Pöhn # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by diff --git a/tests/main.TestCase b/tests/main.TestCase index 2581e33d..cceafcf4 100755 --- a/tests/main.TestCase +++ b/tests/main.TestCase @@ -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__":