pytest-catchlog
pytest-catchlog copied to clipboard
py.test plugin to catch log messages. Forked from pytest-capturelog. Pull Requests are welcome!
This is similar to #41 but suggests something perhaps a bit more nefarious. The code below spawns lots of threads (on my machine, ~100 was enough to do it, but...
Changes affecting users: - Now `caplog.text` always uses the same formatting, regardless the `--log-format` option. You won't want your tests fail because the user prefers another formatting, after all -...
Partially resolves #14 ("Integrate with --capture and -v options of pytest"), in a slightly more natural and efficient way than proposed in #20 ("Move pytest-logging functionality to pytest-catchlog.") Note: this...