Commit 884870e7 authored by Jochen Sprickerhof's avatar Jochen Sprickerhof
Browse files

Merge branch 'ci_fix' into 'master'

Fix CheckupdatesTest

See merge request !988
parents badc40b8 121e06e4
Pipeline #344785045 failed with stages
in 12 minutes and 18 seconds
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment