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

Function test_show

lib/matplotlib/tests/test_backend_template.py:33–41  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

31
32
33def test_show(monkeypatch):
34 mpl_test_backend = SimpleNamespace(**vars(backend_template))
35 mock_show = MagicMock()
36 monkeypatch.setattr(
37 mpl_test_backend.FigureManagerTemplate, "pyplot_show", mock_show)
38 monkeypatch.setitem(sys.modules, "mpl_test_backend", mpl_test_backend)
39 mpl.use("module://mpl_test_backend")
40 plt.show()
41 mock_show.assert_called_with()
42
43
44def test_show_old_global_api(monkeypatch):

Callers

nothing calls this directly

Calls 1

showMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…