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

Function test_format_config

IPython/core/tests/test_formatters.py:365–377  ·  view source on GitHub ↗

config objects don't pretend to support fancy reprs with lazy attrs

()

Source from the content-addressed store, hash-verified

363
364
365def test_format_config():
366 """config objects don't pretend to support fancy reprs with lazy attrs"""
367 f = HTMLFormatter()
368 cfg = Config()
369 with capture_output() as captured:
370 result = f(cfg)
371 nt.assert_is(result, None)
372 nt.assert_equal(captured.stderr, "")
373
374 with capture_output() as captured:
375 result = f(Config)
376 nt.assert_is(result, None)
377 nt.assert_equal(captured.stderr, "")
378
379def test_pretty_max_seq_length():
380 f = PlainTextFormatter(max_seq_length=1)

Callers

nothing calls this directly

Calls 3

HTMLFormatterClass · 0.90
capture_outputClass · 0.85
fFunction · 0.70

Tested by

no test coverage detected