A pytest plugin providing a marker for not implemented features and tests.
The notimplemented
marker is designed to be used for tests which should fail because
the feature is not yet implemented.
As tests on not implemented features should fail, it is just syntatic sugar for a
standard xfail
marker with a "Not implemented" message.
from pytest import mark
@mark.notimplemented
def test_foo(foo):
assert foo.baz()
@mark.xfail("Not implemented")
def test_bar(bar):
assert bar.baz()
The notwritten
marker is is designed to be used for tests which are declared but not
defined. Those kind of tests are just placeholders to help the developer remember that
the behavior must be tested. And that marker helps on it.
As not written tests (or tests not finished to write) are impredictable, they must be
skipped. That marker is just syntatic sugar for a standard skip
marker with a
"Not written" message.
from pytest import mark
@mark.notwritten
def test_foo(foo):
pass
@mark.skip("Not written")
def test_bar(bar):
pass