Skip to content

Commit 84e2f4e

Browse files
authored
fix: fixed quiet_mode test to ignore unimportant logs (#3795)
Signed-off-by: Meet Soni <[email protected]>
1 parent 136e286 commit 84e2f4e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cve_bin_tool/cli.py

+1
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ def main(argv=None):
531531
LOGGER.setLevel(args["log_level"].upper())
532532

533533
if args["quiet"]:
534+
logging.disable(logging.ERROR)
534535
LOGGER.setLevel(logging.CRITICAL)
535536

536537
if 0 < LOGGER.level <= 10:

test/test_cli.py

-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ def test_unknown_warning(self, caplog):
291291
assert len(warnings) > 0, "Unknown version warning didn't get generated"
292292
assert f"png was detected with version UNKNOWN in file {filename}" in warnings
293293

294-
@pytest.mark.skip(reason="Causing problems during longtests, needs fixing")
295294
def test_quiet_mode(self, capsys, caplog):
296295
"""Test that an quiet mode isn't generating any output"""
297296

0 commit comments

Comments
 (0)