File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ jobs:
114
114
--ignore=test/test_cli.py
115
115
--ignore=test/test_cvedb.py
116
116
--ignore=test/test_requirements.py
117
- --ignore=test/test_nvd_api.py
118
117
- name : Run synchronous tests
119
118
run : >
120
119
pytest -v
@@ -183,7 +182,6 @@ jobs:
183
182
--ignore=test/test_cli.py
184
183
--ignore=test/test_cvedb.py
185
184
--ignore=test/test_requirements.py
186
- --ignore=test/test_nvd_api.py
187
185
- name : Run synchronous tests
188
186
run : >
189
187
pytest -v --cov --cov-append --cov-report=xml
@@ -255,7 +253,6 @@ jobs:
255
253
--ignore=test/test_cvedb.py
256
254
--ignore=test/test_requirements.py
257
255
--ignore=test/test_helper_script.py
258
- --ignore=test/test_nvd_api.py
259
256
- name : Run synchronous tests
260
257
run : >
261
258
pytest -v
Original file line number Diff line number Diff line change @@ -102,6 +102,7 @@ async def get_nvd_params(
102
102
self .params ["modStartDate" ] = self .convert_date_to_nvd_date (
103
103
time_of_last_update - timedelta (minutes = 2 )
104
104
)
105
+ self .params ["modEndDate" ] = self .convert_date_to_nvd_date (datetime .now ())
105
106
self .logger .info (
106
107
f'Fetching updated CVE entries after { self .params ["modStartDate" ]} '
107
108
)
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ def teardown_class(cls):
21
21
shutil .rmtree (cls .outdir )
22
22
23
23
@pytest .mark .asyncio
24
- @pytest .mark .skip (reason = "Disabled due to timeouts" )
25
24
async def test_get_nvd_params (self ):
26
25
"""Test NVD for a future date. It should be empty"""
27
26
nvd_api = NVD_API ()
@@ -32,7 +31,6 @@ async def test_get_nvd_params(self):
32
31
assert nvd_api .total_results == 0 and nvd_api .all_cve_entries == []
33
32
34
33
@pytest .mark .asyncio
35
- @pytest .mark .skip (reason = "Disabled due to timeouts" )
36
34
async def test_total_results_count (self ):
37
35
"""Total results should be greater than or equal to the current fetched cves"""
38
36
nvd_api = NVD_API ()
@@ -43,7 +41,6 @@ async def test_total_results_count(self):
43
41
assert len (nvd_api .all_cve_entries ) >= nvd_api .total_results
44
42
45
43
@pytest .mark .asyncio
46
- @pytest .mark .skip (reason = "Disabled due to timeouts" )
47
44
async def test_nvd_incremental_update (self ):
48
45
"""Test to check whether we are able to fetch and save the nvd entries using time_of_last_update"""
49
46
nvd_api = NVD_API (incremental_update = True )
You can’t perform that action at this time.
0 commit comments