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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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