DEV Community

Discussion on: Asserting Exceptions with Pytest

Collapse
 
wangonya profile image
Kelvin Wangonya

That's the expected behaviour. The test is checking that an exception was raised, so if that doesn't happen, the tests fails.