From e10a734c0fbf02259ad4fd9678527da3d4f5215d Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Wed, 30 Aug 2023 21:36:37 +0300 Subject: [PATCH] Improve Audit result table views Signed-off-by: Michael Sverdlov --- xray/audit/python/python_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xray/audit/python/python_test.go b/xray/audit/python/python_test.go index d5274db6b..3175d299c 100644 --- a/xray/audit/python/python_test.go +++ b/xray/audit/python/python_test.go @@ -59,8 +59,8 @@ func TestBuildPipDependencyListRequirements(t *testing.T) { // Run getModulesDependencyTrees rootNode, uniqueDeps, err := BuildDependencyTree(&AuditPython{Tool: pythonutils.Pip, PipRequirementsFile: "requirements.txt"}) assert.NoError(t, err) - assert.Contains(t, uniqueDeps, "pexpect:4.7.0") - assert.Contains(t, uniqueDeps, "ptyprocess:0.7.0") + assert.Contains(t, uniqueDeps, pythonPackageTypeIdentifier+"pexpect:4.7.0") + assert.Contains(t, uniqueDeps, pythonPackageTypeIdentifier+"ptyprocess:0.7.0") assert.Len(t, rootNode, 1) if len(rootNode) > 0 { assert.NotEmpty(t, rootNode[0].Nodes)