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"?
Discussion 0
Join free to post in the discussion.
Related questions
- What a pytest fixture doesAutomation Test Engineer
- Arrange, Act, AssertAutomation Test Engineer
- An upside-down test pyramidAutomation Test Engineer
- Sharing fixtures in pytestAutomation Test Engineer
- Running pytest in parallelAutomation Test Engineer
- A keyword-driven frameworkAutomation Test Engineer
- Layers in a test frameworkAutomation Test Engineer
- Where test passwords belongAutomation Test Engineer