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:
Teppei Fukuda
2021-01-25 14:44:07 +02:00
committed by GitHub
parent 182cb800a8
commit 6ed03a83a5
7 changed files with 160 additions and 7 deletions

View File

@@ -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",
},