Skip to content

Glossary: Coding with AI Assistants

pytest.raises

A pytest helper used in a `with` block that passes only if the code inside raises the named error, like `ValueError` for an unknown SKU.

Where the book teaches it

Related terms

pytestassert