We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can use the standard python assert for validation.
def test_01(): assert 2 == 5
You can assert exception using below snippet,
with pytest.raises(Exception):
import pytest def test_zero_division(): with pytest.raises(ZeroDivisionError): 5 / 0
There was an error while loading. Please reload this page.