We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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