{ "info": { "author": "Stefano Apostolico", "author_email": "s.apostolico@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "===========\npytest-echo\n===========\n\n\n.. image:: https://badge.fury.io/py/pytest-echo.svg\n :target: http://badge.fury.io/py/pytest-echo\n :alt: PyPI package\n\n\nPrint environment variables, package version and generic attributes,\nas they are at the begining of the test.\n\nUseful in the continuous integration to dump test\nconfiguration/environment and or to check if attributes are properly set\n(ie. you change environment with `os.environ`)\n\n\nInstall\n=======\n\ninstall via::\n\n pip install pytest-echo\n\n\n\nExamples\n========\n\nDump environment variables\n--------------------------\n\n.. code-block:: sh\n\n $ py.test --echo-env=HOME\n ============================= test session starts =========================\n platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python\n Environment:\n HOME: /Users/sax\n plugins: echo, pydev, cov, cache, django\n\n\nDump package version\n--------------------\n\n.. code-block:: sh\n\n $ py.test --echo-version=pytest_echo\n ============================= test session starts =========================\n platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python\n Package version:\n pytest_echo: 0.1\n plugins: echo, pydev, cov, cache, django\n\n\n.. warning:: The first attempt to retrieve the version is done via setuptools\n if it fails, the module is imported (``__import__(package)``) to retrieve the version reading\n ``get_version``, ``__version__``, ``VERSION``, ``version`` so any module\n level code is executed. This should be not an issue as no problematic code\n should be present in the first level of the package\n\nDump attributes\n---------------\n\n.. code-block:: sh\n\n $ py.test --echo-attr=django.conf.settings.DEBUG\n ============================= test session starts =========================\n platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python\n Inspections\n django.conf.settings.DEBUG: False\n plugins: echo, pydev, cov, cache, django\n\n.. warning:: Be careful when use ``--echo-attr``. It loads any module in the path and this will\n execute any module level code\n If you try to dump a property, related ``getter`` will be executed.\n\n.. note:: You cannot dump callable result.\n\n\nConfigure via tox.ini/setup.cfg/pytest.cfg\n------------------------------------------\n\nExample of use in a django project:\n\n.. code-block:: inifile\n\n [pytest]\n addopts = -vvv\n --tb=short\n --capture=no\n --echo-env PWD\n --echo-env VIRTUAL_ENV\n --echo-env DBENGINE\n --echo-version django\n --echo-version pip\n --echo-version pytest-echo\n --echo-attr django.conf.settings.DATABASES.default.ENGINE\n\n\n\n.. code-block:: sh\n\n $ py.test\n ============================= test session starts =========================\n platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python\n Environment:\n DJANGO_SETTINGS_MODULE: tests.settings\n PWD: /data/PROGETTI/sem\n VIRTUAL_ENV: /data/VENV/sem\n DBENGINE: \n Package version:\n django: 1.6.5\n pip: 1.5.6\n pytest_echo: 1.2\n Inspections:\n django.conf.settings.DATABASES.default.ENGINE: 'django.db.backends.postgresql_psycopg2'\n plugins: echo, cache, capturelog, contextfixture, cov, django, pydev\n collected 14 items\n .............\n 14 passed in 4.95 seconds\n\n\nGlobbing\n--------\n\nStarting from version 1.5, is possible to glob packages version and environment variables,\nas:\n\n.. code-block:: sh\n\n $ py.test --echo-version=pytest-* --echo-env=VIRTUAL*\n\nor\n\n.. code-block:: inifile\n\n [pytest]\n addopts = -vvv\n --echo-env VIRTUAL*\n --echo-version pytest-*\n\n\n\n\nLinks\n-----\n\n+--------------------+-----------------+---------------+----------------+\n| Stable | |master-build| | |master-cov| | |master-doc| |\n+--------------------+-----------------+---------------+----------------+\n| Development | |dev-build| | |dev-cov| | |dev-doc| |\n+--------------------+-----------------+---------------+----------------+\n| Project home page: | https://github.com/saxix/pytest-echo |\n+--------------------+--------------------------------------------------+\n| Issue tracker: | https://github.com/saxix/pytest-echo/issues?sort |\n+--------------------+--------------------------------------------------+\n| CI: | https://travis-ci.org/saxix/pytest-echo |\n+--------------------+--------------------------------------------------+\n| Download: | http://pypi.python.org/pypi/pytest-echo/ |\n+--------------------+--------------------------------------------------+\n| Documentation: | https://pytest-echo.readthedocs.org/en/latest/ |\n+--------------------+--------------------------------------------------+\n\n\n.. |master-build| image:: https://secure.travis-ci.org/saxix/pytest-echo.png?branch=master\n :target: http://travis-ci.org/saxix/pytest-echo/\n\n.. |master-cov| image:: https://codecov.io/gh/saxix/pytest-echo/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/saxix/pytest-echo\n\n.. |master-doc| image:: https://readthedocs.org/projects/pytest-echo/badge/?version=stable\n :target: http://pytest-echo.readthedocs.io/en/stable/\n\n.. |dev-build| image:: https://secure.travis-ci.org/saxix/pytest-echo.png?branch=develop\n :target: http://travis-ci.org/saxix/pytest-echo/\n\n.. |dev-cov| image:: https://codecov.io/gh/saxix/pytest-echo/branch/develop/graph/badge.svg\n :target: https://codecov.io/gh/saxix/pytest-echo\n\n.. |dev-doc| image:: https://readthedocs.org/projects/pytest-echo/badge/?version=latest\n :target: http://pytest-echo.readthedocs.io/en/latest/", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/saxix/pytest-echo", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "pytest-echo", "package_url": "https://pypi.org/project/pytest-echo/", "platform": "", "project_url": "https://pypi.org/project/pytest-echo/", "project_urls": { "Homepage": "https://github.com/saxix/pytest-echo" }, "release_url": "https://pypi.org/project/pytest-echo/1.6.0/", "requires_dist": null, "requires_python": "", "summary": "pytest plugin with mechanisms for echoing environment variables, package version and generic attributes", "version": "1.6.0" }, "last_serial": 3850510, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "d80d216efcacc44bcd617da740872ab9", "sha256": "a054caf56a1638337d60cdf308f6df24eaee5fe261ea55768a5eb58d4375808c" }, "downloads": -1, "filename": "pytest-echo-1.0.tar.gz", "has_sig": false, "md5_digest": "d80d216efcacc44bcd617da740872ab9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7082, "upload_time": "2014-08-04T15:55:12", "url": "https://files.pythonhosted.org/packages/59/98/7a689e1bf3e13d89d91bdc3194dd9f0578872d5ac1630d39c06ed5b9bc28/pytest-echo-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "25c6c4671bd876e62eed956fd24e521e", "sha256": "21f22eeb2b4795d73ce9dcc61150ccdc38f387b19324b75a9e621d38bc39333d" }, "downloads": -1, "filename": "pytest-echo-1.1.tar.gz", "has_sig": false, "md5_digest": "25c6c4671bd876e62eed956fd24e521e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8189, "upload_time": "2014-08-05T08:55:45", "url": "https://files.pythonhosted.org/packages/66/92/35059f1fa766308fe58c6039f00859995532a7961db97cc5e41fb7711abe/pytest-echo-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "446ea8740cc687e2ed045482c65ff0c8", "sha256": "a3dcfe53f8f915e0b7128f16edf14af63e94473b8de491198846321125f3f251" }, "downloads": -1, "filename": "pytest-echo-1.2.tar.gz", "has_sig": false, "md5_digest": "446ea8740cc687e2ed045482c65ff0c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8300, "upload_time": "2014-08-05T11:08:00", "url": "https://files.pythonhosted.org/packages/24/02/3ef79dd145bab1d94815091d0cde63efa772bc46e81b3c11c5d1effe63fa/pytest-echo-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "2f64ca4e4fd062fb64acfa1a5f6d5106", "sha256": "7e74ecbf463c64e61015297bd7c4f3cffc07f9eabc071124460d0fae47a380af" }, "downloads": -1, "filename": "pytest-echo-1.3.tar.gz", "has_sig": false, "md5_digest": "2f64ca4e4fd062fb64acfa1a5f6d5106", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10255, "upload_time": "2014-08-09T21:59:02", "url": "https://files.pythonhosted.org/packages/b2/94/bfcd13c938b1c1f2465b7c0bee40969a130da40ba57ae78c5ea7f46a668d/pytest-echo-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "71fdb4ebfa65bebe0a75e8684649e231", "sha256": "b1431fd4ba243a1e6417e840410dc2ed4566dabebd540787fe5018ea7fad9c5d" }, "downloads": -1, "filename": "pytest-echo-1.4.tar.gz", "has_sig": false, "md5_digest": "71fdb4ebfa65bebe0a75e8684649e231", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 354064, "upload_time": "2015-10-12T20:56:29", "url": "https://files.pythonhosted.org/packages/e1/c5/5d08a4bd83180dccec348d0540e3877306d07c6436983962f0b0a03a4add/pytest-echo-1.4.tar.gz" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "19998a5ac2671539a9308a41680e0aec", "sha256": "e7924abef29cf24b272593e8a4590b64a588b13ab0d61ad6aba06cdbd70ee655" }, "downloads": -1, "filename": "pytest-echo-1.5.tar.gz", "has_sig": false, "md5_digest": "19998a5ac2671539a9308a41680e0aec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 358119, "upload_time": "2018-01-11T10:31:36", "url": "https://files.pythonhosted.org/packages/e5/fa/7824355abf69d9acc3448398152dc3a868ca4e15c62b032625eaeb4e98d9/pytest-echo-1.5.tar.gz" } ], "1.5.1": [ { "comment_text": "", "digests": { "md5": "9fc284b3c304a4060986e39c12826edf", "sha256": "d5eb4c9048bcaa3b00bc3796ed62ffeeba81d6f854bd78fbe4a064ab6e6952e9" }, "downloads": -1, "filename": "pytest-echo-1.5.1.tar.gz", "has_sig": false, "md5_digest": "9fc284b3c304a4060986e39c12826edf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15358, "upload_time": "2018-01-11T11:51:01", "url": "https://files.pythonhosted.org/packages/c6/63/6351cd204aac2e4820ab086f707ee43e1cb488c4102a0a5accab268fef5b/pytest-echo-1.5.1.tar.gz" } ], "1.6.0": [ { "comment_text": "", "digests": { "md5": "4b95df94ac97be5c42092eeb21bc162f", "sha256": "919f2c3d79a8537339266b182feb8a0670510873dd1158ab4bdae8217d31de18" }, "downloads": -1, "filename": "pytest-echo-1.6.0.tar.gz", "has_sig": false, "md5_digest": "4b95df94ac97be5c42092eeb21bc162f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13860, "upload_time": "2018-04-22T17:13:26", "url": "https://files.pythonhosted.org/packages/e6/7c/88389767f4418e06a8bd73a60fee0226e2620aad7de63a78c6ff62764493/pytest-echo-1.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4b95df94ac97be5c42092eeb21bc162f", "sha256": "919f2c3d79a8537339266b182feb8a0670510873dd1158ab4bdae8217d31de18" }, "downloads": -1, "filename": "pytest-echo-1.6.0.tar.gz", "has_sig": false, "md5_digest": "4b95df94ac97be5c42092eeb21bc162f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13860, "upload_time": "2018-04-22T17:13:26", "url": "https://files.pythonhosted.org/packages/e6/7c/88389767f4418e06a8bd73a60fee0226e2620aad7de63a78c6ff62764493/pytest-echo-1.6.0.tar.gz" } ] }