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

Function test_select_figure_formats_bad

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

Source from the content-addressed store, hash-verified

132 nt.assert_not_in(Figure, f)
133
134def test_select_figure_formats_bad():
135 ip = get_ipython()
136 with nt.assert_raises(ValueError):
137 pt.select_figure_formats(ip, 'foo')
138 with nt.assert_raises(ValueError):
139 pt.select_figure_formats(ip, {'png', 'foo'})
140 with nt.assert_raises(ValueError):
141 pt.select_figure_formats(ip, ['retina', 'pdf', 'bar', 'bad'])
142
143def test_import_pylab():
144 ns = {}

Callers

nothing calls this directly

Calls 1

get_ipythonFunction · 0.90

Tested by

no test coverage detected