File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -914,7 +914,7 @@ def main(argv=None):
914
914
"Consult the documentation at https://cve-bin-tool.readthedocs.io/en/latest/how_to_guides/offline.html to find out how to setup offline operation."
915
915
)
916
916
return ERROR_CODES [CVEDBOutdatedSchema ]
917
-
917
+
918
918
# If running in update-only mode, exit now
919
919
if args .get ("update_only" , False ):
920
920
LOGGER .info ("Database update completed. Exiting without scanning." )
@@ -991,7 +991,7 @@ def main(argv=None):
991
991
and not args ["vex_file" ]
992
992
):
993
993
args ["directory" ] = "" # Set a dummy value to pass validation
994
-
994
+
995
995
# Input validation
996
996
if (
997
997
not args ["directory" ]
Original file line number Diff line number Diff line change @@ -275,26 +275,28 @@ def test_update(self, caplog):
275
275
) in caplog .record_tuples
276
276
caplog .clear ()
277
277
278
- @pytest .mark .skipif (not LONG_TESTS (), reason = "Update-only flag tests are long tests" )
278
+ @pytest .mark .skipif (
279
+ not LONG_TESTS (), reason = "Update-only flag tests are long tests"
280
+ )
279
281
def test_update_only (self , caplog ):
280
282
"""Test the --update-only flag"""
281
283
with caplog .at_level (logging .INFO ):
282
284
main (["cve-bin-tool" , "--update-only" ])
283
-
285
+
284
286
# Check that we see the update-only mode message
285
287
assert (
286
288
"cve_bin_tool" ,
287
289
logging .INFO ,
288
290
"Running in update-only mode" ,
289
291
) in caplog .record_tuples
290
-
292
+
291
293
# Check that we see the completion message
292
294
assert (
293
295
"cve_bin_tool" ,
294
296
logging .INFO ,
295
297
"Database update completed. Exiting without scanning." ,
296
298
) in caplog .record_tuples
297
-
299
+
298
300
caplog .clear ()
299
301
300
302
def test_unknown_warning (self , caplog ):
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ def test_language_package(
281
281
if product_info .product not in found_product :
282
282
found_product .append (product_info .product )
283
283
break # Stop after finding one product
284
-
284
+
285
285
# Only check if at least one product was found
286
286
assert len (found_product ) > 0
287
287
assert file_path == filename
You can’t perform that action at this time.
0 commit comments