[Python] Python testing: How can I verify that no error logs were thrown?

Discussão em 'Python' iniciado por Stack, Janeiro 30, 2025.

  1. Stack

    Stack Membro Participativo

    In my test I want to verify that no error log was done during the test. How do I do that?

    I tried with self.assertLogs("", level="ERROR") as error_logs:. This can capture the error logs, but it will also raise if there were no error logs at all.

    Continue reading...

Compartilhe esta Página