mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
Merge branch 'ci_fix' into 'master'
Fix CheckupdatesTest See merge request fdroid/fdroidserver!988
This commit is contained in:
commit
884870e74e
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user