Skip to main content

No more testing

Project description

antitesting: no more testing

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

There are standard ways to temporarily disable individual tests. One of them is pytest.mark.skip. However, this plugin extends 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

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.

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.1.tar.gz (4.7 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.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: antitesting-0.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for antitesting-0.0.1.tar.gz
Algorithm Hash digest
SHA256 004d957284a50bdfbf3d4264b515990b057b594680afca52c51b0e01cb33c3ea
MD5 db6c7f3c5acfd3595f87f060281e72ae
BLAKE2b-256 16e3f3fdf8a9d9396852135c157a95e0ec27462d845b85a5e1264eb23e12bec3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: antitesting-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for antitesting-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de8f441d30961e24bd8d54d83c185feb7d205039b32e85d2f59592b2279250a3
MD5 b75aea12b435cff1b7eee5eeb716a09e
BLAKE2b-256 de2222d42f42e345274a854148bec65a9f0557998efe97b6796954d75eb1cdfc

See more details on using hashes here.

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