Test that the preamble is included in the source.
()
| 12 | |
| 13 | |
| 14 | def test_fontconfig_preamble(): |
| 15 | """Test that the preamble is included in the source.""" |
| 16 | plt.rcParams['text.usetex'] = True |
| 17 | |
| 18 | src1 = TexManager()._get_tex_source("", fontsize=12) |
| 19 | plt.rcParams['text.latex.preamble'] = '\\usepackage{txfonts}' |
| 20 | src2 = TexManager()._get_tex_source("", fontsize=12) |
| 21 | |
| 22 | assert src1 != src2 |
| 23 | |
| 24 | |
| 25 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…