A nose plugin to detect tests making http calls.
Project description
A nose plugin that can detect tests making external http calls. Example output:
$ nosetests -v myapp/ test_that_makes_request ... ok test_with_no_request ... ok ====================================================================== FAIL: Tests made external http calls (--no-detect-http to disable) ---------------------------------------------------------------------- - myapp.tests.AppTest: test_that_makes_request: GET http://example.com ---------------------------------------------------------------------- Ran 2 tests in 0.001s FAILED (failures=1)
Under the hood, this wraps every test in a separate VCR.py cassette. Since VCR.py’s hooks are in the stdlib, this approach won’t detect requests made with clients like PycURL.
History
0.1
released 2014-11-21
initial release
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
nose-detecthttp-0.1.1.tar.gz
(4.6 kB
view details)
File details
Details for the file nose-detecthttp-0.1.1.tar.gz
.
File metadata
- Download URL: nose-detecthttp-0.1.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7952eefbd6bf8f7168c75c646cf9190c398c7e47c184311474e93bd25c445469 |
|
MD5 | 518d21dad1dd250452efdf96b1473153 |
|
BLAKE2b-256 | 074638dda1c503bd92909e75a9e8ae08b96e4bcccfe3c7f80d51b2703b11bf54 |