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

Function test_import_pylab

IPython/core/tests/test_pylabtools.py:143–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 pt.select_figure_formats(ip, ['retina', 'pdf', 'bar', 'bad'])
142
143def test_import_pylab():
144 ns = {}
145 pt.import_pylab(ns, import_all=False)
146 nt.assert_true('plt' in ns)
147 nt.assert_equal(ns['np'], np)
148
149class TestPylabSwitch(object):
150 class Shell(InteractiveShell):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected