mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
fix(python): follow PEP 440 (#816)
* feat(python): replace go-version with go-pep440-version * chore(mod): add go-pep440-version * refactor: add trick for golangci-lint * refactor: rename test functions
This commit is contained in:
@@ -29,13 +29,13 @@ func TestAdvisory_DetectVulnerabilities(t *testing.T) {
|
||||
name: "detected",
|
||||
args: args{
|
||||
pkgName: "django",
|
||||
pkgVer: "2.2.11-alpha",
|
||||
pkgVer: "2.2.11a1",
|
||||
},
|
||||
fixtures: []string{"testdata/fixtures/pip.yaml"},
|
||||
want: []types.DetectedVulnerability{
|
||||
{
|
||||
PkgName: "django",
|
||||
InstalledVersion: "2.2.11-alpha",
|
||||
InstalledVersion: "2.2.11a1",
|
||||
VulnerabilityID: "CVE-2020-9402",
|
||||
FixedVersion: "1.11.29, 2.2.11, 3.0.4",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user