Skip to content
RED SAGSkills
easy5 pts · first answer countstest-automationpytest

Asserting that an error is raised

In pytest, how do you assert that parse_amount("abc") raises a ValueError with a message containing "invalid amount"?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions