A simple pytest plugin to skip flapping test with deadline
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-skipuntil-0.1.0.tar.gz
.
File metadata
- Download URL: pytest-skipuntil-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4feb556b84f1c87188246adaab06c3d6be24b51ed431d05100381a0d58ae5ad |
|
MD5 | 390eb064a6c4ff6e5a1e111d24c0d0ec |
|
BLAKE2b-256 | 1261f9b8a22c7eebfa0d7d2ae4ee5623acede76067c3e49a4577a00c1be5a864 |
File details
Details for the file pytest_skipuntil-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_skipuntil-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0bdbedc6d5cbc48b3841a93f695271e6b044b974f3b7b667dbb939b98f58c39 |
|
MD5 | 5e70fb587a7dca35910e36eefbe98a4f |
|
BLAKE2b-256 | ef4c84f94d6f525867e09a8b2a5d2f30e5318a16e84e7726861ef48f3cf4b5d9 |