Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-notimplemented-1.0.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

pytest_notimplemented-1.0.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pytest-notimplemented-1.0.0.tar.gz.

File metadata

  • Download URL: pytest-notimplemented-1.0.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.4 Linux/5.2.0-arch2-1-ARCH

File hashes

Hashes for pytest-notimplemented-1.0.0.tar.gz
Algorithm Hash digest
SHA256 303d7390bcee50b291af6f16bbae8e42a7116fcd09eca3ef7ae1c13045955693
MD5 162e0c28b16b5d25df5ceefa305102c1
BLAKE2b-256 c4d4b37d24eea42f48311842e2068e80a11ffb12f86e71940763400897af1be5

See more details on using hashes here.

File details

Details for the file pytest_notimplemented-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_notimplemented-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2103d597c8966e05e11b492bdeed841dd2bfbed7b7f7629f0e63036f396fb2e
MD5 599ce8514d320eec25b4718d33f28588
BLAKE2b-256 3031c5a976a8c930aa4356ad497372cec82238ff88a0c01c7bd5723d192bfc98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page