From a4a17ba265e3bf75e39ac8dc8a0007d0a4775de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Mon, 6 Jan 2020 18:10:09 +0100 Subject: [PATCH] checkout version curl-7_67_0 of curl for the tests. --- .github/workflows/pythonapp.yml | 7 ------- tests/test_finder.py | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 4386848..1389c87 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -28,13 +28,6 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Checkout curl for the tests - uses: actions/checkout@v2 - with: - repository: curl/curl - ref: curl-7_67_0 - path: test_repos/curl - - name: Test with pytest run: | poetry run pytest diff --git a/tests/test_finder.py b/tests/test_finder.py index 07ee774..35cb2a2 100644 --- a/tests/test_finder.py +++ b/tests/test_finder.py @@ -3,7 +3,7 @@ from git_vuln_finder import find -def test_find_vuln(): - all_potential_vulnerabilities, all_cve_found, found = find("/home/runner/work/git-vuln-finder/git-vuln-finder/test_repos/curl/") +def test_find_vuln(clone_curl): + all_potential_vulnerabilities, all_cve_found, found = find("./test_repos/curl/") assert len(list(all_cve_found)) == 63