An empty list is a valid value for processors so it must be preserved.
(self)
| 411 | assert dict is p._context_class |
| 412 | |
| 413 | def test_empty_processors(self): |
| 414 | """ |
| 415 | An empty list is a valid value for processors so it must be preserved. |
| 416 | """ |
| 417 | # We need to do a bind such that we get an actual logger and not just |
| 418 | # a lazy proxy. |
| 419 | logger = wrap_logger(object(), processors=[]).new() |
| 420 | |
| 421 | assert [] == logger._processors |
| 422 | |
| 423 | def test_wrap_returns_proxy(self): |
| 424 | """ |
nothing calls this directly
no test coverage detected