(caplog)
| 98 | |
| 99 | |
| 100 | def test_log_access(caplog): |
| 101 | caplog.set_level(logging.INFO) |
| 102 | logger.info("boo %s", "arg") |
| 103 | assert caplog.records[0].levelname == "INFO" |
| 104 | assert caplog.records[0].msg == "boo %s" |
| 105 | assert "boo arg" in caplog.text |
| 106 | |
| 107 | |
| 108 | def test_messages(caplog): |