(writer)
| 47 | |
| 48 | |
| 49 | def test_patcher(writer): |
| 50 | logger.add(writer, format="{extra[a]} {extra[b]}") |
| 51 | logger.configure(patcher=lambda record: record["extra"].update(a=1, b=2)) |
| 52 | |
| 53 | logger.debug("") |
| 54 | |
| 55 | assert writer.read() == "1 2\n" |
| 56 | |
| 57 | |
| 58 | def test_activation(writer): |