Test StreamToLogger initialization.
()
| 27 | |
| 28 | |
| 29 | def test_streamtologger_init(): |
| 30 | """Test StreamToLogger initialization.""" |
| 31 | logger = logging.getLogger("test") |
| 32 | stream = StreamToLogger(logger, log_level=logging.DEBUG) |
| 33 | |
| 34 | assert stream.logger == logger |
| 35 | assert stream.log_level == logging.DEBUG |
| 36 | assert stream.linebuf == "" |
| 37 | |
| 38 | |
| 39 | def test_streamtologger_write_single_line(): |
nothing calls this directly
no test coverage detected