py.test integration for responses
Project description
Automatically activate responses across your py.test-powered test suite (thus preventing HTTP requests).
If particular tests need access to external domains, you can use the withoutresponses marker:
@pytest.mark.withoutresponses
def test_disabled():
with pytest.raises(ConnectionError):
requests.get('http://responses.invalid')
assert len(responses.calls) == 0
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
pytest-responses-0.1.0.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for pytest_responses-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6af7cabc5b5cb6b2db5d78da5266197fc551e759f0507054a831ab2851243a2 |
|
MD5 | 5930738abfb3b1d1929a332c17d4a953 |
|
BLAKE2b-256 | 080e87f1d1d858b1526f5de9346a4b00bcdac3cf33b777da3607c2e2c809371c |