From ceb2c63458f24997dfb897b278014110b5ead9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Mon, 6 Jan 2020 16:29:45 +0100 Subject: [PATCH] added basic test --- tests/test_finder.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/test_finder.py diff --git a/tests/test_finder.py b/tests/test_finder.py new file mode 100644 index 0000000..f990708 --- /dev/null +++ b/tests/test_finder.py @@ -0,0 +1,9 @@ + + +from git_vuln_finder import find + + +def test_find_vuln(): + all_potential_vulnerabilities, all_cve_found, found = find("/home/cedric/git/curl") + + assert len(list(all_cve_found)) == 63