config objects don't pretend to support fancy reprs with lazy attrs
()
| 363 | |
| 364 | |
| 365 | def 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 | |
| 379 | def test_pretty_max_seq_length(): |
| 380 | f = PlainTextFormatter(max_seq_length=1) |
nothing calls this directly
no test coverage detected