mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-14 11:10:30 +03:00
Handle duplicate apps in a much cleaner way
Don't log and exit in an inner metadata function. Handle it at a higher level and do a proper exception. This also avoids unnecessary passing of apps all around.
This commit is contained in:
parent
ce2f4a115c
commit
de12cfdbe1
3 changed files with 19 additions and 22 deletions
|
|
@ -30,8 +30,7 @@ class ImportTest(unittest.TestCase):
|
|||
fdroidserver.common.config['sdk_path'] = '/fake/path/to/android-sdk'
|
||||
|
||||
url = 'https://gitlab.com/fdroid/fdroidclient'
|
||||
apps = dict()
|
||||
appid, app = fdroidserver.metadata.get_default_app_info_list(apps)
|
||||
appid, app = fdroidserver.metadata.get_default_app_info()
|
||||
app['Update Check Mode'] = "Tags"
|
||||
root_dir, src_dir = import_proxy.get_metadata_from_url(app, url)
|
||||
self.assertEquals(app['Repo Type'], 'git')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue