tests: sort None values as empty list (#46007)
This commit is contained in:
parent
29e398577d
commit
0c023195ce
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue