Skip to content

Commit

Permalink
fix: changed metric ids in cvedb to constants and fixed test (#4473)
Browse files Browse the repository at this point in the history
  • Loading branch information
weichslgartner committed Oct 1, 2024
1 parent 993b0e3 commit ab4b89e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/test_source_epss.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ def setup_class(cls):
]

def test_parse_epss(self):
# EPSS need metrics table to populated in the database. To get the EPSS metric id from table.
# EPSS need metrics table to populated in the database. EPSS metric id is a constant.
cvedb = CVEDB()
# creating table
cvedb.init_database()
# populating metrics
cvedb.populate_metrics()
cursor = cvedb.db_open_and_get_cursor()
# seting EPSS_metric_id
self.epss.EPSS_id_finder(cursor)
# parsing the data
self.epss_data = self.epss.parse_epss_data(self.epss.file_name)
cvedb.db_close()
Expand Down

0 comments on commit ab4b89e

Please sign in to comment.