MCPcopy Index your code
hub / github.com/ipython/ipython / test_qt

Function test_qt

tests/test_pylabtools.py:208–230  ·  view source on GitHub ↗
(shell_pylab_fixture)

Source from the content-addressed store, hash-verified

206
207
208def test_qt(shell_pylab_fixture):
209 s = shell_pylab_fixture
210 gui, backend = s.enable_matplotlib(None)
211 assert gui == "qt"
212 assert s.pylab_gui_select == "qt"
213
214 gui, backend = s.enable_matplotlib("inline")
215 assert gui is None
216 assert s.pylab_gui_select == "qt"
217
218 gui, backend = s.enable_matplotlib("qt")
219 assert gui == "qt"
220 assert s.pylab_gui_select == "qt"
221
222 gui, backend = s.enable_matplotlib("inline")
223 assert gui is None
224 assert s.pylab_gui_select == "qt"
225
226 gui, backend = s.enable_matplotlib()
227 assert gui == "qt"
228 assert s.pylab_gui_select == "qt"
229 s.configurables = []
230 s.history_manager = None
231
232
233def test_inline(shell_pylab_fixture):

Callers

nothing calls this directly

Calls 1

enable_matplotlibMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…