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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page