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 23fb8f5 commit 107cdafCopy full SHA for 107cdaf
2 files changed
vulntotal/datasources/safetydb.py
@@ -46,7 +46,7 @@ def fetch_advisory(self):
46
return response.json()
47
48
def datasource_advisory(self, purl) -> Iterable[VendorData]:
49
- if purl.type != "pypi":
+ if purl.type not in self.supported_ecosystem():
50
return []
51
advisory = self.fetch_advisory()
52
self._raw_dump.append(advisory)
vulntotal/tests/test_safetydb.py
@@ -17,7 +17,7 @@
17
from vulntotal.datasources import safetydb
18
19
20
-class TestGithub(testcase.FileBasedTesting):
+class TestSafetydb(testcase.FileBasedTesting):
21
test_data_dir = str(Path(__file__).resolve().parent / "test_data" / "safetydb")
22
23
def test_parse_advisory(self):
0 commit comments