Skip to main content

logo

Downloads Downloads codecov Test-Package Hits-of-Code Python versions PyPI version Checked with mypy Ruff

There are standard ways to temporarily disable individual tests. As an example, using of the pytest.mark.skip decorator. This plugin adds a new way to do this by extending the standard features of Pytest. Now you can put the names of the disabled tests in a separate file, and then correct and supplement them without going into the source code of the tests.

Install the plugin:

pip install antitesting

Create one or more files containing the names of the tests that you want to disable. In our example, this will be a file disabled_tests.txt containing the text like this:

test_1
test_2 : 12.12.2012
test_3 : 12.12.2025
test_4 : 13.12.2025 # fix after test_3

Finally, add these lines to the file conftest.py:

import antitesting  # If you use static type analyzers like mypy, importing using the expression "from antitesting import antitesting" is more suitable for you.

antitesting("disabled_tests.txt")

The disabled_tests.txt file that we created contains the names of the tests that we want to disable. This is equivalent to putting a skip decorator on each of them, but it does not require getting into the source code of the tests and saves you time. You could also see the dates in the file in the format DD.MM.YYYY. If there is a date in this format in the line with the test name, the test will be ignored only until that date, and after that it will become available. If necessary, you can accompany the lines with comments separated by sharps ("#").

Metadata

Release files for antitesting 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for antitesting 0.0.12
File Size Uploaded
antitesting-0.0.12.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for antitesting 0.0.12
File Interpreter ABI Platform
antitesting-0.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 14.6 kB

Release files / antitesting-0.0.12.tar.gz

Download URL antitesting-0.0.12.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e9f85b57b63b5ba6017d1f720dfa5527c57a8b73b2827acea551af06bc04ef3a
BLAKE2b-256 checksum
How to use checksums
6508dfcf24236388278e84951a01433c1b1ded0300528f3369a0268ed50f8d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 9, 2025.

Transparency log

Release files / antitesting-0.0.12-py3-none-any.whl

Download URL antitesting-0.0.12-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d450b7b1efebb5ce1f9dbedb8d90cd38cee0c888f432e51907fe2a1b76e31b7
BLAKE2b-256 checksum
How to use checksums
ba317cc8d24381a18370b8fbec963d53ba3190395c57b7a3124ad94dd1608515
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 9, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page