Open anchita20 opened 1 week ago
Hey, I was curious as to why most of the tests were failing, when I had changed a single file only, when I run pytest?
Hey, I was curious as to why most of the tests were failing, when I had changed a single file only, when I run pytest?
It's because of what you changed: most of the tests rely on cvedb data to load correctly; if you put an error in that code then it makes everything that relies on it break too.
Description:
This PR modifies the cvedb.py file to make use of the fact that all the schemas are stored in self.TABLE_SCHEMAS[table_name] as earlier it required both the table name and a schema as arguments
Changes Made: Added few lines to latest_schema and init_database functions in the cvedb.py
Fixes #4242