mirror of
https://github.com/cve-search/git-vuln-finder.git
synced 2024-11-29 02:07:19 +00:00
19 lines
408 B
Python
19 lines
408 B
Python
|
|
import os
|
|
import pytest
|
|
|
|
from git import Repo
|
|
|
|
|
|
@pytest.fixture(scope='session')
|
|
def clone_curl():
|
|
"""Clone the repository of curl for the tests."""
|
|
git_url = 'https://github.com/curl/curl.git'
|
|
repo_dir = './test_repos/curl'
|
|
repo = Repo.clone_from(url=git_url, to_path=repo_dir)
|
|
#repo.heads['curl-7_67_0'].checkout()
|
|
|
|
def teardown():
|
|
os.unlink(repo_dir)
|
|
|
|
return repo_dir
|