• [Python-announce] logassert v8 released!

    From Facundo Batista@facundobatista@gmail.com to comp.lang.python.announce on Fri Nov 8 11:21:13 2024
    From Newsgroup: comp.lang.python.announce

    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
    --- Synchronet 3.20a-Linux NewsLink 1.114