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,6 +114,7 @@ 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')
): ):
with self.assertRaises(FDroidException):
fdroidserver.checkupdates.checkupdates_app(app) fdroidserver.checkupdates.checkupdates_app(app)
with mock.patch( with mock.patch(
@ -148,6 +149,7 @@ class CheckupdatesTest(unittest.TestCase):
'fdroidserver.checkupdates.check_tags', 'fdroidserver.checkupdates.check_tags',
lambda app, pattern: (None, 'bla', None), lambda app, pattern: (None, 'bla', None),
): ):
with self.assertRaises(FDroidException):
fdroidserver.checkupdates.checkupdates_app(app) fdroidserver.checkupdates.checkupdates_app(app)
with mock.patch( with mock.patch(