Skip to content

Glossary: Software Design Patterns

assert

A Python statement that fails the test if its condition is False. pytest tests use it to check results, such as `assert order["total"] == total`.

Where the book teaches it

Related terms

pytest