Small trick needed to be able to test chained app upgrades

This commit is contained in:
Alexandre Aubin 2019-09-15 02:13:02 +02:00
parent a476deb7fb
commit aa3687ba02

View file

@ -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)