{ "info": { "author": "Hamza Sheikh", "author_email": "code@codeghar.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing" ], "description": "# pytest-hidecaptured\n\nI write tests that generate a lot of debug messages to console and file.\npytest captures all output from tests and displays them when a test fails.\nThis behavior is exacerbated when there are a large number of tests within a\ntest run. Since I already log these messages to file I don't need pytest to\ndisplay them on the console. I'd rather it showed me its own reports only.\n\nThis issue is exacerbated when others run the same tests. All they care about\nis whether the test passed or failed and don't need to see the details. In case\nthe test failed the debug log files already have the required information.\n\nWhen any test fails pytest displays all captured output (stdout, stderr, log)\nas part of its report. For example,\n\n ===== test session starts ======\n platform darwin -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0\n rootdir: /home/example/code, inifile:\n collected 1 items\n\n test_logging.py F\n\n ===== FAILURES =====\n ----- test_logging -----\n\n def test_logging():\n logger.debug('DEBUG!')\n logger.info('INFO!')\n logger.warning('WARNING!')\n logger.error('ERROR!')\n logger.critical('CRITICAL!')\n > assert False\n E assert False\n\n test_logging.py:33: AssertionError\n ----- Captured stderr call -----\n 2016-01-19 22:29:40,581 : test_logging : test_logging : test_logging : DEBUG : DEBUG!\n 2016-01-19 22:29:40,582 : test_logging : test_logging : test_logging : INFO : INFO!\n 2016-01-19 22:29:40,582 : test_logging : test_logging : test_logging : WARNING : WARNING!\n 2016-01-19 22:29:40,582 : test_logging : test_logging : test_logging : ERROR : ERROR!\n 2016-01-19 22:29:40,582 : test_logging : test_logging : test_logging : CRITICAL : CRITICAL!\n ===== 1 failed in 0.03 seconds =====\n\npytest-hidecaptured removes the captured output so it is not displayed. For\nexample, with pytest-hidecaputred installed, the report for the same test is,\n\n ===== test session starts ======\n platform darwin -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0\n rootdir: /home/example/code, inifile:\n plugins: hidecaptured-0.2.2\n collected 1 items\n\n test_logging.py F\n\n ===== FAILURES =====\n ----- test_logging -----\n\n def test_logging():\n logger.debug('DEBUG!')\n logger.info('INFO!')\n logger.warning('WARNING!')\n logger.error('ERROR!')\n logger.critical('CRITICAL!')\n > assert False\n E assert False\n\n test_logging.py:33: AssertionError\n ===== 1 failed in 0.02 seconds =====\n\nThis [pytest](https://github.com/pytest-dev/pytest) plugin was generated with\n[Cookiecutter](https://github.com/audreyr/cookiecutter) along with\n[@hackebrot](https://github.com/hackebrot)'s\n[Cookiecutter-pytest-plugin](https://github.com/pytest-dev/cookiecutter-pytest-plugin)\ntemplate.\n\n\n# Requirements\n\n* Python\n\n * 2.7 or 3.6+\n * pypy2 or pypy3\n\n* pytest 2.8.5+\n\nNote: Older versions of pytest may be compatible but I have not tested them.\n\n# Installation\n\nYou can install *pytest-hidecaptured* with ``pip`` from [PyPI](https://pypi.org/),\n\n $ pip install pytest-hidecaptured\n\n# Usage\n\nAfter installing pytest-hidecaputred use ``pytest`` the way you always have.\nThere is no additional step required and no additional flag(s) added.\n\n# Contributing\n\nContributions are very welcome. Tests can be run with ``tox``, please ensure\nthe coverage at least stays the same before you submit a pull request.\n\n# License\n\nDistributed under the terms of the MIT license, \"pytest-hidecaptured\" is free\nand open source software\n\n# Issues\n\nIf you encounter any problems, please\n[file an issue](https://github.com/codeghar/pytest-hidecaptured/issues)\nalong with a detailed description.\n\n# Development\n\nThe following targets in *Makefile* help do simple things.\n\n## init\n\n $ make init\n\nInstall required packages for development.\n\n## clean\n\n $ make clean\n\nRemoves these directories:\n\n- .tox/\n- build/\n- dist/\n\n## build\n\n $ make build\n\nBuild source distribution and universal wheel.\n\n## test\n\n $ make test\n\nRuns ``tox`` to run tests.\n\n## release\n\n $ make release\n\nUpload builds to PyPI. Requires *~/.pypirc* is configured properly.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/codeghar/pytest-hidecaptured", "keywords": "", "license": "MIT", "maintainer": "Hamza Sheikh", "maintainer_email": "code@codeghar.com", "name": "pytest-hidecaptured", "package_url": "https://pypi.org/project/pytest-hidecaptured/", "platform": "", "project_url": "https://pypi.org/project/pytest-hidecaptured/", "project_urls": { "Homepage": "https://github.com/codeghar/pytest-hidecaptured" }, "release_url": "https://pypi.org/project/pytest-hidecaptured/0.2.2/", "requires_dist": [ "pytest (>=2.8.5)" ], "requires_python": "", "summary": "Hide captured output", "version": "0.2.2" }, "last_serial": 3835514, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "26f74efeb710c858155e03ecb9316286", "sha256": "5838ac6a822b5dc8f4cbcf61a8c3b21cc8003d3189a724f9822bb5ed5a367477" }, "downloads": -1, "filename": "pytest-hidecaptured-0.1.0.tar.gz", "has_sig": false, "md5_digest": "26f74efeb710c858155e03ecb9316286", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3525, "upload_time": "2016-01-20T07:44:19", "url": "https://files.pythonhosted.org/packages/ba/ea/ad1d90ee17d24939bd19dd436f101b40b9cb0a6572757fb388961092eac0/pytest-hidecaptured-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d846894fc9f6e3efe99b48d8516ee79e", "sha256": "90fbbb6aa58c09825b4b77fccaa8dfda125477925df7a81256dd1a0701868cc6" }, "downloads": -1, "filename": "pytest-hidecaptured-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d846894fc9f6e3efe99b48d8516ee79e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3546, "upload_time": "2016-01-21T03:29:32", "url": "https://files.pythonhosted.org/packages/d5/89/19e16efe6706b0cca53d3358aef19c574b53ef0599dfbb1232b60554c0fd/pytest-hidecaptured-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3a532b091215fc09767c69f62c13033d", "sha256": "591f4b798b81fa24c1da420a4a6c265d26581acbec518b26cd7d3e7e151d438f" }, "downloads": -1, "filename": "pytest-hidecaptured-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3a532b091215fc09767c69f62c13033d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3570, "upload_time": "2016-03-11T01:56:32", "url": "https://files.pythonhosted.org/packages/ac/1d/0bcd0d7aac1e7907136bc0c39e705fc2d6cc35b6be27db58f7bb01ad82ef/pytest-hidecaptured-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "69555113c88d3903df5f94adbc978a59", "sha256": "23a3f6f6893aa6808639d4f784d23d51f128c9500ac4e45b7db2ce359efcfe39" }, "downloads": -1, "filename": "pytest_hidecaptured-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "69555113c88d3903df5f94adbc978a59", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3669, "upload_time": "2018-05-04T18:46:07", "url": "https://files.pythonhosted.org/packages/90/31/1eaf35d3e84231ee25188fd02b403700c2a53c407ca22f3ed35a4694cd36/pytest_hidecaptured-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63130ce3c43e13eafebeab1d671ab708", "sha256": "750f12d9fbe5996913c4df9f6659454859c8d93c9f2bba5df201b5674372e3ed" }, "downloads": -1, "filename": "pytest-hidecaptured-0.2.0.tar.gz", "has_sig": false, "md5_digest": "63130ce3c43e13eafebeab1d671ab708", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3616, "upload_time": "2018-05-04T18:46:08", "url": "https://files.pythonhosted.org/packages/00/10/3f9ab9640ae5fc051a7414cbbfe00c1213ea96be6afd73455cb0c18401f2/pytest-hidecaptured-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "81c55a7fa1ffe37c9ef43ed968e4d6fb", "sha256": "30ba79d14053f7e01e3ea16cd5cd259890acff58ddff607f30a4b335a0292390" }, "downloads": -1, "filename": "pytest_hidecaptured-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "81c55a7fa1ffe37c9ef43ed968e4d6fb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3593, "upload_time": "2018-05-04T19:10:11", "url": "https://files.pythonhosted.org/packages/29/4d/1dfcd466da60297da19152278f0f448d6c99b8d0ce56d65bf0aaa691a1a4/pytest_hidecaptured-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6f8b300bbf5e6a0348f1f6552903dedb", "sha256": "d6c233880b4b2ba9a2b35fd3113bdd6d126655ed76a2147a689b020abec8e93b" }, "downloads": -1, "filename": "pytest-hidecaptured-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6f8b300bbf5e6a0348f1f6552903dedb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3546, "upload_time": "2018-05-04T19:10:12", "url": "https://files.pythonhosted.org/packages/e8/0d/d242792d89c1b95736a16013e745ab6e3ae36155ee8244c1931b6a747f20/pytest-hidecaptured-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "c989ad6263f9a3a9519837d99b32c6a9", "sha256": "cb31885974de34adf66212480b0498636ecf5aa5bc5761f7ee7f895f30cdfad2" }, "downloads": -1, "filename": "pytest_hidecaptured-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c989ad6263f9a3a9519837d99b32c6a9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3632, "upload_time": "2018-05-04T19:41:54", "url": "https://files.pythonhosted.org/packages/cb/66/fcb5a824de4f9df48647ecab9ad01965bf4f3639d7ebb9cee193f5c8d734/pytest_hidecaptured-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "328429cab43bd14dbfe028ece25b353d", "sha256": "b25003ce4196a076596b209c237cb28bcb4eb89e0729c839d958744ea1238013" }, "downloads": -1, "filename": "pytest-hidecaptured-0.2.2.tar.gz", "has_sig": false, "md5_digest": "328429cab43bd14dbfe028ece25b353d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3605, "upload_time": "2018-05-04T19:41:55", "url": "https://files.pythonhosted.org/packages/96/47/69191ecc08bb278c31a8eed064b15d5a17e2e9f94823d1087b6673fe2cff/pytest-hidecaptured-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c989ad6263f9a3a9519837d99b32c6a9", "sha256": "cb31885974de34adf66212480b0498636ecf5aa5bc5761f7ee7f895f30cdfad2" }, "downloads": -1, "filename": "pytest_hidecaptured-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c989ad6263f9a3a9519837d99b32c6a9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3632, "upload_time": "2018-05-04T19:41:54", "url": "https://files.pythonhosted.org/packages/cb/66/fcb5a824de4f9df48647ecab9ad01965bf4f3639d7ebb9cee193f5c8d734/pytest_hidecaptured-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "328429cab43bd14dbfe028ece25b353d", "sha256": "b25003ce4196a076596b209c237cb28bcb4eb89e0729c839d958744ea1238013" }, "downloads": -1, "filename": "pytest-hidecaptured-0.2.2.tar.gz", "has_sig": false, "md5_digest": "328429cab43bd14dbfe028ece25b353d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3605, "upload_time": "2018-05-04T19:41:55", "url": "https://files.pythonhosted.org/packages/96/47/69191ecc08bb278c31a8eed064b15d5a17e2e9f94823d1087b6673fe2cff/pytest-hidecaptured-0.2.2.tar.gz" } ] }