Skip to main content

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 --with-detecthttp myapp/
test_that_makes_request ... ok
test_with_no_request ... ok

======================================================================
FAIL: Tests made external http calls
----------------------------------------------------------------------
- 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.1

released 2014-11-24

  • 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.3.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file nose-detecthttp-0.1.3.tar.gz.

File metadata

File hashes

Hashes for nose-detecthttp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 272fe18f7ee6865aab7a47b7054d3b40f70224a33ff30ea11aff57f3c2a0034d
MD5 d61e8cca4b82ccee7bc03cee33a847e7
BLAKE2b-256 c9a0e489bf2595218d63c790b406a72493412db6032657746b9c2672afceee16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page