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

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.11.tar.gz (6.9 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.11-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: antitesting-0.0.11.tar.gz
  • Upload date:
  • Size: 6.9 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.11.tar.gz
Algorithm Hash digest
SHA256 5d175436f9d2b918a3f005c97869cc6a3f6be6b1dfcc76a526bf660a100ca85d
MD5 1d988cdf0cb865ecffb2a8d454c8946d
BLAKE2b-256 09444ba82a867fdf2688b1eff05699359fa83452039956f8bb66e3d1b0084406

See more details on using hashes here.

Provenance

The following attestation bundles were made for antitesting-0.0.11.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.11-py3-none-any.whl.

File metadata

  • Download URL: antitesting-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 8cf7c6f3fa4fd83a21ed2a3ddef78cdc38bd35b36f78b08e9b2180e769c7fa7e
MD5 3af37ecb2914a259fbdb7972c5761010
BLAKE2b-256 446a7ddc44b6d2f3350b9f8543dd933251456a147cf0321a6955445bafac97a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for antitesting-0.0.11-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