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

Function test_score_weight

lib/matplotlib/tests/test_font_manager.py:75–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73
74
75def test_score_weight():
76 assert 0 == fontManager.score_weight("regular", "regular")
77 assert 0 == fontManager.score_weight("bold", "bold")
78 assert (0 < fontManager.score_weight(400, 400) <
79 fontManager.score_weight("normal", "bold"))
80 assert (0 < fontManager.score_weight("normal", "regular") <
81 fontManager.score_weight("normal", "bold"))
82 assert (fontManager.score_weight("normal", "regular") ==
83 fontManager.score_weight(400, 400))
84
85
86def test_json_serialization(tmp_path):

Callers

nothing calls this directly

Calls 1

score_weightMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…