Async methods log async.
(self, meth, cl)
| 383 | "meth", ["debug", "info", "warning", "error", "critical"] |
| 384 | ) |
| 385 | async def test_async_log_methods(self, meth, cl): |
| 386 | """ |
| 387 | Async methods log async. |
| 388 | """ |
| 389 | bl = build_bl(cl, processors=[]) |
| 390 | |
| 391 | await getattr(bl, f"a{meth}")("Async!") |
| 392 | |
| 393 | assert [ |
| 394 | CapturedCall(method_name=meth, args=(), kwargs={"event": "Async!"}) |
| 395 | ] == cl.calls |
| 396 | |
| 397 | async def test_async_log_methods_special_cases(self, cl): |
| 398 | """ |
nothing calls this directly
no test coverage detected