Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…o operational-risks-results-duplication-bug-fix
  • Loading branch information
eranturgeman committed Feb 2, 2025
2 parents c8c35f3 + 69dce6e commit 07adb9d
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 64 deletions.
12 changes: 6 additions & 6 deletions commands/audit/sca/python/python_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,16 @@ func TestBuildPoetryDependencyList(t *testing.T) {
_, cleanUp := sca.CreateTestWorkspace(t, filepath.Join("projects", "package-managers", "python", "poetry", "my-poetry-project"))
defer cleanUp()
expectedPoetryUniqueDeps := []string{
PythonPackageTypeIdentifier + "wcwidth:0.2.8",
PythonPackageTypeIdentifier + "wcwidth:0.2.13",
PythonPackageTypeIdentifier + "colorama:0.4.6",
PythonPackageTypeIdentifier + "packaging:23.2",
PythonPackageTypeIdentifier + "packaging:24.2",
PythonPackageTypeIdentifier + "python:",
PythonPackageTypeIdentifier + "pluggy:0.13.1",
PythonPackageTypeIdentifier + "py:1.11.0",
PythonPackageTypeIdentifier + "atomicwrites:1.4.1",
PythonPackageTypeIdentifier + "attrs:23.1.0",
PythonPackageTypeIdentifier + "more-itertools:10.1.0",
PythonPackageTypeIdentifier + "numpy:1.26.1",
PythonPackageTypeIdentifier + "attrs:25.1.0",
PythonPackageTypeIdentifier + "more-itertools:10.6.0",
PythonPackageTypeIdentifier + "numpy:1.26.4",
PythonPackageTypeIdentifier + "pytest:5.4.3",
}
// Run getModulesDependencyTrees
Expand All @@ -202,7 +202,7 @@ func TestBuildPoetryDependencyList(t *testing.T) {
childNode := tests.GetAndAssertNode(t, rootNode[0].Nodes, "pytest:5.4.3")
// Test sub child module
if assert.NotNil(t, childNode) {
tests.GetAndAssertNode(t, childNode.Nodes, "packaging:23.2")
tests.GetAndAssertNode(t, childNode.Nodes, "packaging:24.2")
}
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = ""
authors = ["Tal Arian <tala@jfrog.com>"]

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
python = ">=3.9,<4.0"
numpy = "^1.26.0"

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit 07adb9d

Please sign in to comment.