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

Function test_progress

IPython/core/tests/test_display.py:250–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 m_warn.assert_called_with('Consider using IPython.display.IFrame instead')
249
250def test_progress():
251 p = display.ProgressBar(10)
252 nt.assert_in('0/10',repr(p))
253 p.html_width = '100%'
254 p.progress = 5
255 nt.assert_equal(p._repr_html_(), "<progress style='width:100%' max='10' value='5'></progress>")
256
257def test_progress_iter():
258 with capture_output(display=False) as captured:

Callers

nothing calls this directly

Calls 1

_repr_html_Method · 0.95

Tested by

no test coverage detected