Home
last modified time | relevance | path

Searched refs:caplog (Results 1 – 5 of 5) sorted by relevance

/external/fonttools/Tests/ufoLib/
DufoLib_test.py55 def test_readMetaInfo_unsupported_format_version(ufo_path, caplog): argument
65 caplog.clear()
66 with caplog.at_level(logging.WARNING, logger="fontTools.ufoLib"):
69 assert len(caplog.records) == 1
70 assert "Unsupported UFO format" in caplog.text
71 assert "Assuming the latest supported version" in caplog.text
DglifLib_test.py218 def test_read_unsupported_format_version(self, caplog): argument
232 caplog.clear()
233 with caplog.at_level(logging.WARNING, logger="fontTools.ufoLib.glifLib"):
236 assert len(caplog.records) == 1
237 assert "Unsupported GLIF format" in caplog.text
238 assert "Assuming the latest supported version" in caplog.text
286 def test_GlyphSet_unsupported_ufoFormatVersion(tmp_path, caplog): argument
/external/fonttools/Tests/varLib/instancer/
Dinstancer_test.py1135 def test_drop_invalid_segment_map(self, varfont, invalidSegmentMap, caplog): argument
1138 with caplog.at_level(logging.WARNING, logger="fontTools.varLib.instancer"):
1141 assert "Invalid avar" in caplog.text
1328 def test_unknown_axis_value_format(self, varfont2, caplog): argument
1334 with caplog.at_level(logging.WARNING, logger="fontTools.varLib.instancer"):
1337 assert "Unknown AxisValue table format (5)" in caplog.text
1613 def test_unsupported_condition_format(self, caplog): argument
1627 with caplog.at_level(logging.WARNING, logger="fontTools.varLib.instancer"):
1633 ) in caplog.text
/external/fonttools/Tests/ttx/
Dttx_test.py957 def test_main_keyboard_interrupt(tmpdir, monkeypatch, caplog): argument
967 assert "(Cancelled.)" in caplog.text
985 def test_main_ttlib_error(tmpdir, monkeypatch, caplog): argument
997 assert "Test error" in caplog.text
1004 def test_main_base_exception(tmpdir, monkeypatch, caplog): argument
1016 assert "Unhandled exception has occurred" in caplog.text
/external/fonttools/Tests/feaLib/
Dparser_test.py357 with CapturingLogHandler("fontTools.feaLib.parser", level="WARNING") as caplog:
360 self.assertEqual(len(caplog.records), 2)
361 caplog.assertRegex("Ambiguous glyph name that looks like a range:")