MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_fontconfig_preamble

Function test_fontconfig_preamble

lib/matplotlib/tests/test_texmanager.py:14–22  ·  view source on GitHub ↗

Test that the preamble is included in the source.

()

Source from the content-addressed store, hash-verified

12
13
14def 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(

Callers

nothing calls this directly

Calls 2

TexManagerClass · 0.90
_get_tex_sourceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…