Snippets tagged “pytest”
1 snippet uses this tag.
- How do you test that a Python function throws an exception?Python
You can use the pytest.raises function to test that a Python function throws an exception.
1 snippet uses this tag.
You can use the pytest.raises function to test that a Python function throws an exception.