Pytest markers for not implemented features and tests.
A pytest plugin providing a marker for not implemented features and tests.
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
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()
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
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pytest_notimplemented-1.0.0-py3-none-any.whl (15.1 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size pytest-notimplemented-1.0.0.tar.gz (14.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for pytest_notimplemented-1.0.0-py3-none-any.whl
Hashes for pytest-notimplemented-1.0.0.tar.gz