mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Small trick needed to be able to test chained app upgrades
This commit is contained in:
parent
a476deb7fb
commit
aa3687ba02
1 changed files with 4 additions and 1 deletions
|
@ -620,7 +620,10 @@ def app_upgrade(app=[], url=None, file=None):
|
|||
|
||||
app_dict = app_info(app_instance_name, raw=True)
|
||||
|
||||
if file:
|
||||
if file and isinstance(file, dict):
|
||||
# We use this dirty hack to test chained upgrades in unit/functional tests
|
||||
manifest, extracted_app_folder = _extract_app_from_file(file[app_instance_name])
|
||||
elif file:
|
||||
manifest, extracted_app_folder = _extract_app_from_file(file)
|
||||
elif url:
|
||||
manifest, extracted_app_folder = _fetch_app_from_git(url)
|
||||
|
|
Loading…
Add table
Reference in a new issue