Skip to content

Commit

Permalink
Fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasks committed Jan 9, 2021
1 parent cc20b41 commit 1940339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion safety/safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def check(packages, key, db_mirror, cached, ignore_ids, proxy):
advisory=data.get("advisory"),
vuln_id=vuln_id,
cvssv2=cve_meta.get("cvssv2", None),
cvssv3=cve_meta.get("cvssv3", None)
cvssv3=cve_meta.get("cvssv3", None),
)
)
return vulnerable
Expand Down
2 changes: 2 additions & 0 deletions tests/test_safety.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def test_full_report(self):
+ ' blah' * 15 + '.\r\n\r\n'
+ 'All users are urged to upgrade please.\r\n',
vuln_id=1234,
cvssv2=None,
cvssv3=None,
),
]
full_report = formatter.SheetReport.render(
Expand Down

0 comments on commit 1940339

Please sign in to comment.