{ "info": { "author": "Bernat Gabor", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Plugins", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "pytest-print\n============\n\nAllows to print extra content onto the PyTest reporting. This can be used for example to report sub-steps for long\nrunning tests, or to print debug information in your tests when you cannot debug the code.\n\n.. image:: https://badge.fury.io/py/pytest_print.svg\n :target: https://badge.fury.io/py/pytest_print\n :alt: Latest version on PyPI\n.. image:: https://img.shields.io/pypi/pyversions/pytest_print.svg\n :target: https://pypi.org/project/pytest_print/\n :alt: Supported Python versions\n.. image:: https://dev.azure.com/pytestdev/pytest_print/_apis/build/status/pytest-dev.pytest-print\n :target: https://dev.azure.com/pytestdev/pytest_print/_build/latest?definitionId=1\n :alt: Azure Pipelines build status\n.. image:: https://readthedocs.org/projects/pytest_print/badge/?version=latest&style=flat-square\n :target: https://pytest_print.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation status\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/ambv/black\n :alt: Code style: black\n\n\ninstall\n=======\n\n.. code-block:: sh\n\n pip install pytest-print\n\nThe plugin provides ability to print information during the tests runs.\n\nflags\n=====\n* ``--print`` by default the module activates print when pytest verbosity is greater than zero, this allows to bypass\n this and force print irrespective of the verbosity\n* ``--print-relative-time`` will print the relative time since the start of the test (display how long it takes to reach\n prints)\n\nuse cases\n=========\n\nsub-step reporting\n------------------\nFor tests that are long running this can provide a feedback ot the end-user that what is just happening in the\nbackground.\n\n\n.. code-block:: python\n\n def test_server_parallel_requests(printer, tmpdir):\n printer(\"create virtual environment into {}\".format(tmpdir))\n create_virtual_environment(tmpdir)\n\n printer(\"start server from virtual env\")\n start_server(tmpdir)\n\n printer(\"do the parallel request test\")\n parallel_requests()\n\n.. code-block:: sh\n\n $ py.test --vv\n ============================= test session starts ==============================\n platform linux -- Python 3.6.4, pytest-3.5.0, py-1.5.3, pluggy-0.6.0\n collecting ... collected 1 item\n\n test_printer_progress.py::test_server_parallel_requests\n create virtual environment\n start server from virtual env\n do the parallel request test\n PASSED [100%]\n\n =========================== 1 passed in 0.02 seconds ===========================", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pytest-print.readthedocs.io/en/latest/", "keywords": "pytest,print,debug", "license": "", "maintainer": "Bernat Gabor", "maintainer_email": "gaborjbernat@gmail.com", "name": "pytest-print", "package_url": "https://pypi.org/project/pytest-print/", "platform": "any", "project_url": "https://pypi.org/project/pytest-print/", "project_urls": { "Homepage": "https://pytest-print.readthedocs.io/en/latest/", "Source": "https://github.com/pytest-dev/pytest-print", "Tracker": "https://github.com/pytest-dev/pytest-print/issues" }, "release_url": "https://pypi.org/project/pytest-print/0.1.3/", "requires_dist": null, "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "pytest-print adds the printer fixture you can use to print messages to the user (directly to the pytest runner, not stdout)", "version": "0.1.3" }, "last_serial": 5775219, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "015ebb5a02b54322c464ebf4c675bbe0", "sha256": "3fdb06f1949771544521afdc34bfaf57357dbbef2f13d81ee113398251b85b91" }, "downloads": -1, "filename": "pytest_print-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "015ebb5a02b54322c464ebf4c675bbe0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3770, "upload_time": "2018-04-14T13:46:25", "url": "https://files.pythonhosted.org/packages/62/6a/1a8a52e399ff22da1a6349f9fa9e34fe1dd432f7e4f66cd787f7ababf9ad/pytest_print-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "59dc467bb989daba5f9e723bfaedd76f", "sha256": "e40cf5a4f72f38225c702b875508d028f104c1dcd73cb7d2267068fa53aa823a" }, "downloads": -1, "filename": "pytest-print-0.1.0.tar.gz", "has_sig": false, "md5_digest": "59dc467bb989daba5f9e723bfaedd76f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 18611, "upload_time": "2018-04-14T13:46:26", "url": "https://files.pythonhosted.org/packages/78/5e/bff0d52b6d6430c511191daa77a8507644d2623234cef1992d57194eebe6/pytest-print-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "26a53f95bba8971370141d8d59248a4b", "sha256": "07adde5739566ace129b8b51777e77b00f7fcedd9b926d3034dd2f8670fff95d" }, "downloads": -1, "filename": "pytest_print-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "26a53f95bba8971370141d8d59248a4b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4784, "upload_time": "2018-11-15T17:10:47", "url": "https://files.pythonhosted.org/packages/2a/9f/2b91d7af1b017476a7a76068ba33859b81088b167be55671c1f4c8c04668/pytest_print-0.1.1-py2.py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "2aa019fa7243b3b6cdc9d53b1ffaf751", "sha256": "b774199e40fbd7a29a77d0f186d976fbeb4b701f1ad46ac6743dd90e27525797" }, "downloads": -1, "filename": "pytest_print-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2aa019fa7243b3b6cdc9d53b1ffaf751", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 5002, "upload_time": "2018-11-29T10:49:56", "url": "https://files.pythonhosted.org/packages/25/9f/e579545fa8ddd5d705cc41cb65584bd042e35fae9496fbb3c681a6bbdc8c/pytest_print-0.1.2-py2.py3-none-any.whl" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "7099174f8596321fa1d14105f5503481", "sha256": "f53bbb3156bb8e35b528d6d093be41387e37eafef45088949a162859e74458a0" }, "downloads": -1, "filename": "pytest_print-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7099174f8596321fa1d14105f5503481", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 5007, "upload_time": "2019-09-03T10:37:27", "url": "https://files.pythonhosted.org/packages/1c/35/e9c31c1473758c4388778644cc9b0048eb1fdeb827ba4a28789e35ed4dc5/pytest_print-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06b1b164267fedf6f5e1209130398dbb", "sha256": "14639b51be4e7285b0a155032f296fb402e98ce9d760a69b4a894b30301d6984" }, "downloads": -1, "filename": "pytest-print-0.1.3.tar.gz", "has_sig": false, "md5_digest": "06b1b164267fedf6f5e1209130398dbb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 23283, "upload_time": "2019-09-03T10:37:14", "url": "https://files.pythonhosted.org/packages/05/68/a74c023c479c66fce31f8e77b3a18baf71831db843b28c4298989c0387b0/pytest-print-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7099174f8596321fa1d14105f5503481", "sha256": "f53bbb3156bb8e35b528d6d093be41387e37eafef45088949a162859e74458a0" }, "downloads": -1, "filename": "pytest_print-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7099174f8596321fa1d14105f5503481", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 5007, "upload_time": "2019-09-03T10:37:27", "url": "https://files.pythonhosted.org/packages/1c/35/e9c31c1473758c4388778644cc9b0048eb1fdeb827ba4a28789e35ed4dc5/pytest_print-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "06b1b164267fedf6f5e1209130398dbb", "sha256": "14639b51be4e7285b0a155032f296fb402e98ce9d760a69b4a894b30301d6984" }, "downloads": -1, "filename": "pytest-print-0.1.3.tar.gz", "has_sig": false, "md5_digest": "06b1b164267fedf6f5e1209130398dbb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 23283, "upload_time": "2019-09-03T10:37:14", "url": "https://files.pythonhosted.org/packages/05/68/a74c023c479c66fce31f8e77b3a18baf71831db843b28c4298989c0387b0/pytest-print-0.1.3.tar.gz" } ] }