Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug in cve_lookup setup + improved error logging #569

Merged
merged 3 commits into from
Apr 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test order bugfix
  • Loading branch information
jstucke committed Apr 22, 2021
commit ceee75103b6d61b18de630e96ef281ddf1515480
4 changes: 2 additions & 2 deletions src/plugins/analysis/cve_lookup/test/test_setup_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def test_exists(monkeypatch):

def test_extract_relevant_feeds():
sr.DATABASE = sr.DatabaseInterface(PATH_TO_TEST + 'test_update.db')
assert [('CVE-2018-0002', 2018), ('CVE-2018-0003', 2018)] == sr.extract_relevant_feeds(from_table='new', where_table='outdated')
assert [('CVE-2018-0002', 2018), ('CVE-2018-0003', 2018)] == sorted(sr.extract_relevant_feeds(from_table='new', where_table='outdated'))


def test_delete_outdated_feeds():
Expand All @@ -311,7 +311,7 @@ def test_create():

def test_insert_into():
sr.insert_into(query='test_insert', table_name='test', input_data=[(1,), (2,)])
assert [(1,), (2,)] == list(sr.DATABASE.fetch_multiple(query=QUERIES['select_all'].format('test')))
assert [(1,), (2,)] == sorted(sr.DATABASE.fetch_multiple(query=QUERIES['select_all'].format('test')))


def test_drop_table():
Expand Down