Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

a special outcome for tests that are blocked for external reasons

Project Description

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


$ pip install pytest-external-blockers


import os
import pytest
from .issues import get_tracker

pytestmark = pytest.mark.skipifif(
"BUGTRACKER" in os.environ,
reason="no bugtracker configured")

def bugtracker():
return get_tracker():
except Exception:
pytest.block("bugtracker unavailiable")

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)
"{issue_id} was not resolved".format(issue_id))
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pytest-external-blockers-0.0.1.tar.gz (4.9 kB) Copy SHA256 Checksum SHA256 Source Oct 4, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting