MCPcopy Create free account
hub / github.com/ipython/ipython / test_qt

Method test_qt

IPython/core/tests/test_pylabtools.py:181–201  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

179 matplotlib.rcParamsOrig = self._saved_rcParamsOrig
180
181 def test_qt(self):
182 s = self.Shell()
183 gui, backend = s.enable_matplotlib(None)
184 nt.assert_equal(gui, 'qt')
185 nt.assert_equal(s.pylab_gui_select, 'qt')
186
187 gui, backend = s.enable_matplotlib('inline')
188 nt.assert_equal(gui, 'inline')
189 nt.assert_equal(s.pylab_gui_select, 'qt')
190
191 gui, backend = s.enable_matplotlib('qt')
192 nt.assert_equal(gui, 'qt')
193 nt.assert_equal(s.pylab_gui_select, 'qt')
194
195 gui, backend = s.enable_matplotlib('inline')
196 nt.assert_equal(gui, 'inline')
197 nt.assert_equal(s.pylab_gui_select, 'qt')
198
199 gui, backend = s.enable_matplotlib()
200 nt.assert_equal(gui, 'qt')
201 nt.assert_equal(s.pylab_gui_select, 'qt')
202
203 def test_inline(self):
204 s = self.Shell()

Callers

nothing calls this directly

Calls 1

enable_matplotlibMethod · 0.80

Tested by

no test coverage detected