From 4c3dba0db91052760a95df56d9b61e88fa0f9c6b Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Fri, 19 Apr 2024 14:29:57 -0700 Subject: [PATCH] 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. --- tools/test/test_depsolve.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/test/test_depsolve.py b/tools/test/test_depsolve.py index 47c5459e..389c6635 100644 --- a/tools/test/test_depsolve.py +++ b/tools/test/test_depsolve.py @@ -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 + }, ] } }