Skip to content

Commit 084aa81

Browse files
committed
Fix tests
Signed-off-by: Tushar Goel <[email protected]>
1 parent 60e49f4 commit 084aa81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vulnerabilities/importer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,15 @@ class Importer:
377377
# It needs to be unique and immutable
378378
importer_name = ""
379379

380-
def get_advisory_id(self, aliases: list[str]) -> str:
380+
@classmethod
381+
def get_advisory_id(cls, aliases: list[str]) -> str:
381382
"""
382383
Return the Advisory ID for the given aliases.
383384
"""
384385
raise NotImplementedError
385386

386-
def get_cve_id(self, aliases: list[str]) -> str:
387+
@classmethod
388+
def get_cve_id(cls, aliases: list[str]) -> str:
387389
"""
388390
Return the CVE ID for the given aliases.
389391
"""

0 commit comments

Comments
 (0)