Skip to content

Glossary: Speech and Audio AI

pytest and assert

Also written: pytest, assert

pytest is a tool that runs every function named `test_...` and reports failures. `assert` is the Python statement that fails a test if its condition is False.

Where the book teaches it