mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-18 20:50:10 +01:00
Fix CheckupdatesTest
This commit is contained in:
parent
badc40b816
commit
121e06e4b7
@ -114,7 +114,8 @@ class CheckupdatesTest(unittest.TestCase):
|
||||
with mock.patch(
|
||||
'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(
|
||||
'fdroidserver.checkupdates.check_http', lambda app: ('1.1.9', 10109)
|
||||
@ -148,7 +149,8 @@ class CheckupdatesTest(unittest.TestCase):
|
||||
'fdroidserver.checkupdates.check_tags',
|
||||
lambda app, pattern: (None, 'bla', None),
|
||||
):
|
||||
fdroidserver.checkupdates.checkupdates_app(app)
|
||||
with self.assertRaises(FDroidException):
|
||||
fdroidserver.checkupdates.checkupdates_app(app)
|
||||
|
||||
with mock.patch(
|
||||
'fdroidserver.checkupdates.check_tags',
|
||||
|
Loading…
Reference in New Issue
Block a user