We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5606182 + a808fe5 commit df5503aCopy full SHA for df5503a
tests/test_cli.py
@@ -67,6 +67,16 @@ def test_setup_logging():
67
assert root_logger.level == logging.DEBUG
68
69
70
+def test_setup_logging_mpl_font_logs_filtered(caplog):
71
+ """Test matplotlib log messages about fonts are filtered out."""
72
+ CSET.setup_logging(2)
73
+ logger = logging.getLogger("matplotlib.font_manager")
74
+ logger.debug("findfont: message")
75
+ logger.debug("other message")
76
+ assert len(caplog.records) == 1
77
+ assert caplog.records[0].getMessage() == "other message"
78
+
79
80
def test_main_no_subparser(capsys):
81
"""Appropriate error when no subparser is given."""
82
with pytest.raises(SystemExit) as sysexit:
0 commit comments