pytest-external-blockers
A pytest outcome for tests you dont run for external/environmental reason.
examples of such reasons reasons are:
lack of access to a bugtracker telling you what tests apply for the current version of software under test
lack of access to a backend service providing essential details for the tests in question
issue in a bugtracker is unresolved
failure of the internet connection
install
$ pip install pytest-external-blockers
use
import os
import pytest
from .issues import get_tracker
pytestmark = pytest.mark.skipif(
"BUGTRACKER" in os.environ,
reason="no bugtracker configured")
@pytest.fixture(scope="session")
def bugtracker():
try:
return get_tracker():
except Exception:
pytest.block("bugtracker unavailiable")
@pytest.fixture(autouse=True)
def _block_unresolved(request, bugtracker):
issue = request.node.getmarker('issue')
if issue is not None:
for issue_id in issue.args:
if bugtracker.is_unresolved(issue_id)
pytest.block(
"{issue_id} was not resolved".format(issue_id))
Metadata
Release files for pytest-external-blockers 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_external_blockers-0.1.1.tar.gz | 7.0 kB | Without provenance | Details for pytest_external_blockers-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_external_blockers-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pytest_external_blockers-0.1.1-py3-none-any.whl |
Total release size: 11.3 kB
Release files / pytest_external_blockers-0.1.1.tar.gz
| Download URL | pytest_external_blockers-0.1.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2e88ff2eaae943d1102372ba29fb8b464567d9e8bc18e89ad8785a2f0fea0de
|
|
BLAKE2b-256 checksum How to use checksums |
c39954716ce822b804a40a132bfd502f8c89b42c932a79b923c6e7f7ae8f21d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / pytest_external_blockers-0.1.1-py3-none-any.whl
| Download URL | pytest_external_blockers-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d0ebdbf144bbc1540c5310438847ba59c940a920b3fe37149b62a70cda41bec
|
|
BLAKE2b-256 checksum How to use checksums |
c7dd4f10ef823d98beb9de1f4787a0d4514f412724e878a847691f24de117d06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for pytest-external-blockers 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.