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.10.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: antitesting-0.0.10.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for antitesting-0.0.10.tar.gz
Algorithm Hash digest
SHA256 4b65d9c437727ab705e66b5704731bc1cddf788b4b6a380c73fe8a78b7ff9815
MD5 c3522bdda51c23df9601fbf1cd151657
BLAKE2b-256 572f77c08b5d7f4e65f44a8bca35969f5bd31b33609b8aeda948c42dc22f02a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for antitesting-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8546da19816acb13c7f9b7a56d818bb0f86330b4df2081bd8cc13401d4f531bf
MD5 fd94b860092c2dbb9eb232f0bb4f3fd8
BLAKE2b-256 72bcc70584c6935afe734596b57a01587ff5abb2bea48028e61163a03095cb9e

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