test_depsolve: Test with empty exclude-specs

The go json serialize process takes a nil slice and converts that to a
'null' instead of an '[]' or leaving off the field. This means that the
json generated by python is not representative of what is output by
images/dnfjson and we have not been properly testing
osbuild-depsolve-dnf5

Testing dnf5 depsolving *also* requires that libdnf5 be present in the
environment, which is a separate problem that still needs to be fixed.
This commit is contained in:
Brian C. Lane 2024-04-19 14:29:57 -07:00 committed by Simon de Vlieger
parent 970b9409b7
commit 4c3dba0db9

View file

@ -42,7 +42,10 @@ def depsolve(pkgs, repos, root_dir, cache_dir, command):
"root_dir": root_dir,
"repos": repos,
"transactions": [
{"package-specs": pkgs},
{
"package-specs": pkgs,
"exclude-specs": None
},
]
}
}