![](https://secure.gravatar.com/avatar/50be2a603b688a28ec6a16710a9a1e9b.jpg?s=120&d=mm&r=g)
The version 8 of `logassert` brings support for the structlog library. Yes, now you can use the whole power of logassert when using structlog as a logger. There are also small administrative enhancements: better README (and documentation in [Read The Docs]()), the CI uses modern Pythons, better tested badge, etc. What is logassert? A simple log assertion mechanism for Python unittests. Provides a simple and expressive way to use it in the unit tests and when the assertion fails it presents a useful report that helps you to find out why it is failing. Includes a fixture to use it with `pytest` and can also be used in classic unit tests. Allows checking using regular expressions, exact strings, multiple strings, and even sequences of several lines, including support for verifying that nothing was logged, and of course filtering by the log level (if desired). Full docs: https://logassert.readthedocs.io/en/latest/ -- . Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org.ar/ Twitter: @facundobatista
participants (1)
-
Facundo Batista