Skip to main content

A simple pytest plugin to skip flapping test with deadline

Project description

PyPI version Python versions See Build Status on AppVeyor

A simple pytest plugin to skip the tests with deadline in a simple way


Features

  • Use this marker to specify the deadline for the skip: a convenient decorator to prevent skipping tests and never going back to fix them. When the deadline is behind, the test will start failing again.

Requirements

  • pytest

  • python>=3.8

Installation

You can install “pytest-skipuntil” via pip from PyPI:

$ pip install pytest-skipuntil

Usage

  • Use it as a decorator for the test that you want to skip:

    @pytest.mark.skip_until(
        deadline=datetime(2023, 12, 11),
        msg='This test requires a fix, but I can't do it right now :('
    )
    def test_something():
        ...

The test will be skipped until 11/12/2023, but it will start failing again after this date, so you’ll be reminded to make a fix.

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, “pytest-skipuntil” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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-skipuntil-0.2.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

pytest_skipuntil-0.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest-skipuntil-0.2.0.tar.gz.

File metadata

  • Download URL: pytest-skipuntil-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pytest-skipuntil-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b0583b5268b3552d574ec552a6773782f908b0f1bad066184464a427c7169ea
MD5 bf8490ece0ced376083fcd1f36844610
BLAKE2b-256 1e2982634be09c88b55ce9bea734fe5b965b222aa4f8449bbbcc5a9ab702f758

See more details on using hashes here.

File details

Details for the file pytest_skipuntil-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_skipuntil-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39db9a34e7c2f528ea77e77653393eeeb4125cb48b81c22e90ddfa533118c81e
MD5 d73840aea4dd5585e26b04472fe6f6f8
BLAKE2b-256 958582f82659e5b0c1fda259c62db6534e5d718ee906c5db1c04836f05cfefd6

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