MCPcopy Index your code
hub / github.com/ipython/ipython / test_pretty_max_seq_length

Function test_pretty_max_seq_length

tests/test_formatters.py:449–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

447
448
449def test_pretty_max_seq_length():
450 f = PlainTextFormatter(max_seq_length=1)
451 lis = list(range(3))
452 text = f(lis)
453 assert text == "[0, ...]"
454 f.max_seq_length = 0
455 text = f(lis)
456 assert text == "[0, 1, 2]"
457 text = f(list(range(1024)))
458 lines = text.splitlines()
459 assert len(lines) == 1024
460
461
462def test_ipython_display_formatter():

Callers

nothing calls this directly

Calls 2

PlainTextFormatterClass · 0.90
fFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…