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


Release history Release notifications

Download files

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

Files for pytest-notimplemented, version 1.0.0
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

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page