{ "info": { "author": "Simon Weber", "author_email": "simon@venmo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "nose-detecthttp\n===============\n\nA nose and pytest plugin that can detect tests making external http calls.\nWith nose, it adds a single artificial failure with all the results::\n \n $ nosetests -v --with-detecthttp example.py\n test_that_makes_request (example.ExampleTests) ... ok\n test_with_no_request (example.ExampleTests) ... ok\n\n ======================================================================\n FAIL: Tests made external http calls\n ----------------------------------------------------------------------\n - example.ExampleTests:\n\n test_that_makes_request:\n GET http://example.com/\n\n\n ----------------------------------------------------------------------\n Ran 2 tests in 0.063s\n\n FAILED (failures=1)\n\nWith pytest, failures are added to individual tests::\n\n $ pytest --with-detecthttp example.py\n ...\n\n item = \n\n def pytest_runtest_teardown(item):\n # Note unmocked interactions collected during runtest_call.\n # This is raised here so that pytest doesn't mark it as an internal error.\n\n report = item.config._detecthttp_reports.pop(item.nodeid, None)\n if item.config._detecthttp_enabled and report:\n > raise report\n E UnmockedRequestsDetected: detecthttp noticed the following requests during this test:\n E GET http://example.com/\n\n detecthttp/pytest.py:82: UnmockedRequestsDetected\n ...2 passed, 1 error in 0.35 seconds\n\n\nLocalhost is automatically ignored.\nTo ignore other hosts, use the `--vcr-ignore-host` option, which takes a comma-delimited list::\n\n $ nosetests -v --with-detecthttp --vcr-ignore-host=example.com example.py\n test_that_makes_request (example.ExampleTests) ... ok\n test_with_no_request (example.ExampleTests) ... ok\n\n ----------------------------------------------------------------------\n Ran 2 tests in 0.110s\n\n OK\n\nUnder the hood, this wraps every test in a separate `VCR.py cassette `__.\nSince VCR.py's hooks are in the stdlib, this approach won't detect requests made with clients like PycURL.\n\n\nHistory\n-------\n\n1.1.0\n+++++\nreleased 2018-12-18\n\n- add pytest support\n\n1.0.0\n+++++\nreleased 2018-09-12\n\n- breaking: ignore host flag now accepts comma-separated values rather than being provided multiple times\n\n0.2.0\n+++++\nreleased 2017-08-15\n\n- add --vcr-ignore-host option to ignore custom hosts\n\n0.1.3\n+++++\nreleased 2015-10-16\n\n- python 3 support\n\n0.1.1\n+++++\nreleased 2014-11-24\n\n- initial release\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/venmo/nose-detecthttp", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nose-detecthttp", "package_url": "https://pypi.org/project/nose-detecthttp/", "platform": "", "project_url": "https://pypi.org/project/nose-detecthttp/", "project_urls": { "Homepage": "https://github.com/venmo/nose-detecthttp" }, "release_url": "https://pypi.org/project/nose-detecthttp/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "A nose plugin to detect tests making http calls.", "version": "1.1.0" }, "last_serial": 4613317, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "518d21dad1dd250452efdf96b1473153", "sha256": "7952eefbd6bf8f7168c75c646cf9190c398c7e47c184311474e93bd25c445469" }, "downloads": -1, "filename": "nose-detecthttp-0.1.1.tar.gz", "has_sig": false, "md5_digest": "518d21dad1dd250452efdf96b1473153", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4567, "upload_time": "2014-11-24T16:23:48", "url": "https://files.pythonhosted.org/packages/07/46/38dda1c503bd92909e75a9e8ae08b96e4bcccfe3c7f80d51b2703b11bf54/nose-detecthttp-0.1.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d61e8cca4b82ccee7bc03cee33a847e7", "sha256": "272fe18f7ee6865aab7a47b7054d3b40f70224a33ff30ea11aff57f3c2a0034d" }, "downloads": -1, "filename": "nose-detecthttp-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d61e8cca4b82ccee7bc03cee33a847e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4602, "upload_time": "2015-10-16T15:11:52", "url": "https://files.pythonhosted.org/packages/c9/a0/e489bf2595218d63c790b406a72493412db6032657746b9c2672afceee16/nose-detecthttp-0.1.3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "158cb9aafc67a3d91d36ce87d4f05ab3", "sha256": "1285c4fdc6bbc9d7b27a4a36b9d624f0cdfe9dbfecaa4896cd75c7e773cb4c07" }, "downloads": -1, "filename": "nose-detecthttp-0.2.0.tar.gz", "has_sig": false, "md5_digest": "158cb9aafc67a3d91d36ce87d4f05ab3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4937, "upload_time": "2017-08-15T19:02:48", "url": "https://files.pythonhosted.org/packages/b1/16/bdc9a5a8e20c3de7f76db889327f17e508ef614d0def7ba44221b3f0ab15/nose-detecthttp-0.2.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "cc3101ef0e39ff993bdd97b5303c7e4d", "sha256": "05015a61d7a2ab739d5140d2e0e483cfd05cbb42a5b141a6af077dbd2cc8515d" }, "downloads": -1, "filename": "nose-detecthttp-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cc3101ef0e39ff993bdd97b5303c7e4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5134, "upload_time": "2018-09-12T15:04:30", "url": "https://files.pythonhosted.org/packages/c6/c0/0263090a320b20e97f3ff6c500e76f8e496b035515adf572f01b99d5ee09/nose-detecthttp-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "b93ed7d4fc6fd656ca3d2d2ebe70a21b", "sha256": "b895167d8050871577e1a4ef41e4290b4dc18a2b1178ae87ace3710cb641657d" }, "downloads": -1, "filename": "nose-detecthttp-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b93ed7d4fc6fd656ca3d2d2ebe70a21b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5824, "upload_time": "2018-12-18T18:49:22", "url": "https://files.pythonhosted.org/packages/84/8c/42a20bc30339fe3d9dbd6957145577ea6274bf7a16ac176a2abfac9e2715/nose-detecthttp-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b93ed7d4fc6fd656ca3d2d2ebe70a21b", "sha256": "b895167d8050871577e1a4ef41e4290b4dc18a2b1178ae87ace3710cb641657d" }, "downloads": -1, "filename": "nose-detecthttp-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b93ed7d4fc6fd656ca3d2d2ebe70a21b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5824, "upload_time": "2018-12-18T18:49:22", "url": "https://files.pythonhosted.org/packages/84/8c/42a20bc30339fe3d9dbd6957145577ea6274bf7a16ac176a2abfac9e2715/nose-detecthttp-1.1.0.tar.gz" } ] }