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

Function test_progress_iter

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

Source from the content-addressed store, hash-verified

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:
259 for i in display.ProgressBar(5):
260 out = captured.stdout
261 nt.assert_in('{0}/5'.format(i), out)
262 out = captured.stdout
263 nt.assert_in('5/5', out)
264
265def test_json():
266 d = {'a': 5}

Callers

nothing calls this directly

Calls 2

capture_outputClass · 0.85
formatMethod · 0.45

Tested by

no test coverage detected