File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,22 @@ async def test_connection_motor(db_uri, db_name):
19
19
assert server_info ["ok" ] == 1.0 , "Direct database ping failed"
20
20
21
21
22
- async def test_fetch_kev_data ():
22
+ async def test_fetch_kev_data_without_schema ():
23
23
kev_data = await fetch_kev_data (DEFAULT_KEV_URL )
24
24
assert "vulnerabilities" in kev_data , "Expected 'vulnerabilities' in KEV data"
25
25
assert (
26
26
len (kev_data ["vulnerabilities" ]) > 0
27
27
), "Expected at least one vulnerability item in KEV data"
28
28
29
29
30
+ async def test_fetch_kev_data_with_schema ():
31
+ kev_data = await fetch_kev_data (DEFAULT_KEV_URL , DEFAULT_KEV_SCHEMA_URL )
32
+ assert "vulnerabilities" in kev_data , "Expected 'vulnerabilities' in KEV data"
33
+ assert (
34
+ len (kev_data ["vulnerabilities" ]) > 0
35
+ ), "Expected at least one vulnerability item in KEV data"
36
+
37
+
30
38
async def test_create_kev_doc ():
31
39
await create_kev_doc (VULN_1 )
32
40
# Attempt to find the newly created document
You can’t perform that action at this time.
0 commit comments