1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-18 20:50:10 +01:00

Fix CheckupdatesTest

This commit is contained in:
Jochen Sprickerhof 2021-07-29 11:52:22 +02:00
parent badc40b816
commit 121e06e4b7

View File

@ -114,7 +114,8 @@ class CheckupdatesTest(unittest.TestCase):
with mock.patch( with mock.patch(
'fdroidserver.checkupdates.check_http', lambda app: (None, 'bla') 'fdroidserver.checkupdates.check_http', lambda app: (None, 'bla')
): ):
fdroidserver.checkupdates.checkupdates_app(app) with self.assertRaises(FDroidException):
fdroidserver.checkupdates.checkupdates_app(app)
with mock.patch( with mock.patch(
'fdroidserver.checkupdates.check_http', lambda app: ('1.1.9', 10109) 'fdroidserver.checkupdates.check_http', lambda app: ('1.1.9', 10109)
@ -148,7 +149,8 @@ class CheckupdatesTest(unittest.TestCase):
'fdroidserver.checkupdates.check_tags', 'fdroidserver.checkupdates.check_tags',
lambda app, pattern: (None, 'bla', None), lambda app, pattern: (None, 'bla', None),
): ):
fdroidserver.checkupdates.checkupdates_app(app) with self.assertRaises(FDroidException):
fdroidserver.checkupdates.checkupdates_app(app)
with mock.patch( with mock.patch(
'fdroidserver.checkupdates.check_tags', 'fdroidserver.checkupdates.check_tags',