Skip to main content

No more testing

Project description

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 ("#").

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

antitesting-0.0.12.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antitesting-0.0.12-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file antitesting-0.0.12.tar.gz.

File metadata

  • Download URL: antitesting-0.0.12.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for antitesting-0.0.12.tar.gz
Algorithm Hash digest
SHA256 e9f85b57b63b5ba6017d1f720dfa5527c57a8b73b2827acea551af06bc04ef3a
MD5 6bf517add12a43afd213d9c3bf6c32e6
BLAKE2b-256 6508dfcf24236388278e84951a01433c1b1ded0300528f3369a0268ed50f8d86

See more details on using hashes here.

Provenance

The following attestation bundles were made for antitesting-0.0.12.tar.gz:

Publisher: release.yml on pomponchik/antitesting

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file antitesting-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: antitesting-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for antitesting-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 4d450b7b1efebb5ce1f9dbedb8d90cd38cee0c888f432e51907fe2a1b76e31b7
MD5 3f2637d0f7a3be0e053f6957e2d12bd7
BLAKE2b-256 ba317cc8d24381a18370b8fbec963d53ba3190395c57b7a3124ad94dd1608515

See more details on using hashes here.

Provenance

The following attestation bundles were made for antitesting-0.0.12-py3-none-any.whl:

Publisher: release.yml on pomponchik/antitesting

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page