BoundLoggerBase._process_event() gets called before relaying events to wrapped loggers.
(self)
| 145 | assert {"event": "", "foo": "bar"} == kw |
| 146 | |
| 147 | def test_copies_context_before_processing(self): |
| 148 | """ |
| 149 | BoundLoggerBase._process_event() gets called before relaying events |
| 150 | to wrapped loggers. |
| 151 | """ |
| 152 | |
| 153 | def chk(_, __, event_dict): |
| 154 | assert b._context is not event_dict |
| 155 | return "" |
| 156 | |
| 157 | b = build_bl(processors=[chk]) |
| 158 | |
| 159 | assert (("",), {}) == b._process_event("", "event", {}) |
| 160 | assert "event" not in b._context |
| 161 | |
| 162 | def test_chain_does_not_swallow_all_exceptions(self): |
| 163 | """ |
nothing calls this directly
no test coverage detected