(tmp_path)
| 190 | |
| 191 | |
| 192 | def test_find_invalid(tmp_path): |
| 193 | |
| 194 | with pytest.raises(FileNotFoundError): |
| 195 | get_font(tmp_path / 'non-existent-font-name.ttf') |
| 196 | |
| 197 | with pytest.raises(FileNotFoundError): |
| 198 | get_font(str(tmp_path / 'non-existent-font-name.ttf')) |
| 199 | |
| 200 | with pytest.raises(FileNotFoundError): |
| 201 | get_font(bytes(tmp_path / 'non-existent-font-name.ttf')) |
| 202 | |
| 203 | |
| 204 | @pytest.mark.skipif(sys.platform != 'linux' or not has_fclist, |
nothing calls this directly
no test coverage detected
searching dependent graphs…