Skip to content

Commit

Permalink
Improve Audit result table views
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Aug 30, 2023
1 parent 61bf687 commit e10a734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xray/audit/python/python_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e10a734

Please sign in to comment.