mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-12 18:20:29 +03:00
[checkupdates] Exit 1 in case of errors
This commit is contained in:
parent
e19a66bec6
commit
a2db8f4a62
3 changed files with 25 additions and 11 deletions
|
|
@ -65,7 +65,8 @@ class CheckupdatesTest(unittest.TestCase):
|
|||
):
|
||||
with mock.patch('fdroidserver.metadata.write_metadata', mock.Mock()):
|
||||
with mock.patch('subprocess.call', lambda cmd: 0):
|
||||
fdroidserver.checkupdates.checkupdates_app(app)
|
||||
with self.assertRaises(FDroidException):
|
||||
fdroidserver.checkupdates.checkupdates_app(app)
|
||||
build = app['Builds'][-1]
|
||||
self.assertEqual(build.versionName, '1.1.9')
|
||||
self.assertEqual(build.commit, '1.1.9')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue