Skip to content

Commit cbf78d9

Browse files
committed
Merge branch 'mr/ramonat/fix-cve-tests' into 'master'
Use a temp copy of the CVE cache to avoid altering repository files See merge request it/e3-core!75
2 parents 96fed5b + 72878aa commit cbf78d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/tests_e3/cve/cve_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from e3.cve import NVD
2+
from e3.fs import cp
23

34
import os
45

@@ -8,7 +9,8 @@ def test_nvd_cve_search(socket_disabled):
89
from requests_cache import NEVER_EXPIRE
910
from warnings import catch_warnings, simplefilter as warn_filter
1011

11-
cache_db = os.path.join(os.path.dirname(__file__), "cache")
12+
cache_db = os.path.join(os.getcwd(), "cache")
13+
cp(os.path.join(os.path.dirname(__file__), "cache"), cache_db, recursive=True)
1214

1315
with catch_warnings(record=True) as w:
1416
# Used to always trigger python warnings if they appear

0 commit comments

Comments
 (0)