Closed andrevitorelli closed 2 years ago
This test now fails successfully. :-) (ie. it's failing due to the bug we're trying to solve at #26, as it should, not due to it's own problems)
I found this cool little thing the other day:
import pytest
xfail = pytest.mark.xfail
@xfail(reason="fails because we have a bug not fixed yet")
def test_that_fails():
....
which can be used to mark tests that are expected to fail for some reason
Passing this test is what we need to solve issue #26