tests: sort None values as empty list (#46007)

This commit is contained in:
Benjamin Dauvergne 2020-08-22 11:28:32 +02:00
parent 29e398577d
commit 0c023195ce
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ def test_hobo_deploy(monkeypatch, tenant_base, mocker, skeleton_dir):
def test_import_template(db, tenant_base):
def listify(value):
if isinstance(value, dict):
value = list((k, listify(v)) for k, v in value.items())
value = list((k, listify(v) or []) for k, v in value.items())
value.sort()
if isinstance(value, list):
value = list(listify(x) for x in value)