Pytest markers for not implemented features and tests.
Project description
pytest-notimplemented
A pytest plugin providing a marker for not implemented features and tests.
@mark.notimplemented
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()
@mark.notwritten
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest-notimplemented-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 303d7390bcee50b291af6f16bbae8e42a7116fcd09eca3ef7ae1c13045955693 |
|
MD5 | 162e0c28b16b5d25df5ceefa305102c1 |
|
BLAKE2b-256 | c4d4b37d24eea42f48311842e2068e80a11ffb12f86e71940763400897af1be5 |
Hashes for pytest_notimplemented-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2103d597c8966e05e11b492bdeed841dd2bfbed7b7f7629f0e63036f396fb2e |
|
MD5 | 599ce8514d320eec25b4718d33f28588 |
|
BLAKE2b-256 | 3031c5a976a8c930aa4356ad497372cec82238ff88a0c01c7bd5723d192bfc98 |