TL;DR Time is a precious resource so I won't waste yours. Here's how you can assert an exception is raised and how to check that in pytest. Solution: Use pytest.raises import pytest def test_raises_exception(): with pytest.raises(ZeroDivisionErr...

Markdown supported · ⌘↵ to post
No responses yet.