1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

Merge branch 'ci_fix' into 'master'

Fix CheckupdatesTest

See merge request fdroid/fdroidserver!988
This commit is contained in:
Jochen Sprickerhof 2021-07-29 10:06:25 +00:00
commit 884870e74e

View File

@ -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',