We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd3d2c2 commit 386b587Copy full SHA for 386b587
vulnerabilities/tests/test_view.py
@@ -123,6 +123,18 @@ def test_package_view_with_valid_purl_and_incomplete_version(self):
123
"pkg:nginx/nginx@1.0.15",
124
]
125
126
+ def test_package_view_with_purl_type(self):
127
+ qs = PackageSearch().get_queryset(query="pkg:pypi")
128
+ pkgs = list(qs)
129
+ pkgs = [p.purl for p in pkgs]
130
+ assert pkgs == ["pkg:pypi/foo@1"]
131
+
132
+ def test_package_view_with_type_as_input(self):
133
+ qs = PackageSearch().get_queryset(query="pypi")
134
135
136
137
138
139
class VulnerabilitySearchTestCase(TestCase):
140
def setUp(self):
0 commit comments