{ "info": { "author": "gocept ", "author_email": "mail@gocept.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Framework :: Plone", "Framework :: Zope2", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing" ], "description": "===================================\nThe gocept.pytestlayer distribution\n===================================\n\nIntegration of zope.testrunner-style test layers into the `py.test`_\nframework\n\nThis package is compatible with Python versions 2.7 and 3.5 - 3.7 including\nPyPy implementation. (To run its tests successfully you should use at least\nPython 2.7.4 because of a bug in earlier Python 2.7 versions.)\n\n.. _`py.test` : http://pytest.org\n\nQuick start\n===========\n\n* Make sure your test files follow the `conventions of py.test's test\n discovery`_\n\n .. _`conventions of py.test's test discovery`:\n http://pytest.org/latest/goodpractises.html#python-test-discovery\n\n In particular, a file named ``tests.py`` will not be recognised.\n\n* Add a buildout section to create the `py.test` runner::\n\n [buildout]\n parts += pytest\n\n [pytest]\n recipe = zc.recipe.egg\n eggs = gocept.pytestlayer\n pytest\n \n\n``gocept.pytestlayer`` registers itself as a ``py.test`` plugin. This way, nothing\nmore is needed to run an existing Zope or Plone test suite.\n\nAdvanced usage\n==============\n\nVersion 2.1 reintroduced `fixture.create()` to be able to define the name of the generated to py.test fixtures. So it is possible to use them in function style tests.\n\nExample (Code has to be in `contest.py`!)::\n\n from .testing import FUNCTIONAL_LAYER\n import gocept.pytestlayer.fixture\n\n globals().update(gocept.pytestlayer.fixture.create(\n FUNCTIONAL_LAYER,\n session_fixture_name='functional_session',\n class_fixture_name='functional_class',\n function_fixture_name='functional'))\n\nThis creates three fixtures with the given names and the scopes in the argument name. The session and class fixtures run `setUp()` and `tearDown()` of the layer if it has not been run before while the function fixture runs `testSetUp()` and `testTearDown()` of the layer. The function fixture depends on the session one. The fixtures return the instance of the layer. So you can use the `functional` fixture like this::\n\n def test_mymodule__my_function__1(functional):\n assert functional['app'] is not None\n\nNot supported use cases\n=======================\n\n* Inheriting from a base class while changing the layer. See `issue #5`_\n\n* Mixing classes inheriting ``unittest.TestCase`` and a ``test_suite()`` function (e. g. to create a ``DocTestSuite`` or a ``DocFileSuite``) in a single module (aka file).\n\n * This is a limitation of the `py.test` test discovery which ignores the doctests in this case.\n\n * Solution: Put the classes and ``test_suite()`` into different modules.\n\n* A ``doctest.DocFileSuite`` which does not have a ``layer`` is silently skipped. Use the built-in doctest abilities of py.test to run those tests.\n\n.. _`issue #5` : https://bitbucket.org/gocept/gocept.pytestlayer/issues/5\n\n\n=============================\nDeveloping gocept.pytestlayer\n=============================\n\n:Author:\n `gocept `_ ,\n Godefroid Chapelle \n\n:PyPI page:\n http://pypi.python.org/pypi/gocept.pytestlayer/\n\n:Issues:\n https://bitbucket.org/gocept/gocept.pytestlayer/issues\n\n:Source code:\n https://bitbucket.org/gocept/gocept.pytestlayer/\n\n:Current change log:\n https://bitbucket.org/gocept/gocept.pytestlayer/raw/tip/CHANGES.rst\n\n\n=================================\nChange log for gocept.pytestlayer\n=================================\n\n6.0 (2018-10-24)\n================\n\n- Add support for Python 3.6, 3.7 and PyPy3.\n\n- Drop support for Python 3.4.\n\n- Fix tests to run with `pytest >= 3.9.1`.\n\n- Release also as universal wheel.\n\n- Update to new pytest fixture API to avoid DeprecationWarnings. (#10)\n\n\n5.1 (2016-12-02)\n================\n\n- Make installation process compatible with `setuptools >= 30.0`.\n\n\n5.0 (2016-08-23)\n================\n\n- Fix tests to pass if `pytest >= 3.0` is used for testing.\n\n\n4.0 (2016-04-27)\n================\n\n- Support Python 3.4, 3.5 and PyPy.\n\n- Use tox as testrunner.\n\n\n3.0 (2016-04-14)\n================\n\n- Claim compatibility with py.test 2.9.x.\n\n- Drop Python 2.6 support.\n\n2.1 (2014-10-22)\n================\n\n- Update handling of keywords and doctest testnames for py.test-2.5.\n [wosc]\n\n- Re-introduce ``gocept.pytestlayer.fixture.create()`` method, to allow giving\n created fixtures a non-random name, so other fixtures can depend on them.\n [tlotze, wosc]\n\n- Generate session-scoped fixtures from layers in addition to class-scoped\n ones, if a session-scoped one is required somewhere, the class-scoped ones\n are simply ignored. [tlotze, wosc]\n\n\n2.0 (2013-09-19)\n================\n\n- Remove need to explicitely create fixtures.\n [gotcha]\n\n- Add ``plone.testing.layered`` test suites support.\n [gotcha]\n\n- Made tests a bit more robust.\n [icemac]\n\n\n1.0 (2013-08-28)\n================\n\n- Initial release.\n [tlotze, icemac, gotcha]\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/gocept/gocept.pytestlayer/", "keywords": "pytest py.test zope.testrunner layer fixture", "license": "ZPL 2.1", "maintainer": "", "maintainer_email": "", "name": "gocept.pytestlayer", "package_url": "https://pypi.org/project/gocept.pytestlayer/", "platform": "", "project_url": "https://pypi.org/project/gocept.pytestlayer/", "project_urls": { "Homepage": "https://bitbucket.org/gocept/gocept.pytestlayer/" }, "release_url": "https://pypi.org/project/gocept.pytestlayer/6.0/", "requires_dist": [ "pytest (>=3.0)", "setuptools", "six", "zope.dottedname", "plone.testing; extra == 'test'" ], "requires_python": "", "summary": "Integration of zope.testrunner-style test layers into py.test framework", "version": "6.0" }, "last_serial": 4409920, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "ffa7449ff583f172e82935aba56f3e1e", "sha256": "259bb9322307c27cc4de32097bf8cc204a9f200e0fa4801803e389a05b2c20bb" }, "downloads": -1, "filename": "gocept.pytestlayer-1.0.tar.gz", "has_sig": false, "md5_digest": "ffa7449ff583f172e82935aba56f3e1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14927, "upload_time": "2013-08-28T09:50:55", "url": "https://files.pythonhosted.org/packages/5a/1f/b11aee9e52caada2734edd30ba80d8c540beb0738cdaba31528ad49b7efc/gocept.pytestlayer-1.0.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "42131bbd3692502de2087d9d710a7265", "sha256": "8530fa6d8eefa201649b451a5b1f0129c6a967f9314bf356df74c1903c7a753b" }, "downloads": -1, "filename": "gocept.pytestlayer-2.0.zip", "has_sig": false, "md5_digest": "42131bbd3692502de2087d9d710a7265", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 44456, "upload_time": "2013-09-19T12:58:02", "url": "https://files.pythonhosted.org/packages/08/47/25a12a473efa32b19b5334b66e2fc3f28753923ad4836ab7e6cda4693d2b/gocept.pytestlayer-2.0.zip" } ], "2.1": [ { "comment_text": "", "digests": { "md5": "a8f7658431a78211c4385a36ef0d90c9", "sha256": "3424eee6f43bb73abc69322354c4e2e3d0e277ca1e50fce7e414625417d663aa" }, "downloads": -1, "filename": "gocept.pytestlayer-2.1.zip", "has_sig": false, "md5_digest": "a8f7658431a78211c4385a36ef0d90c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48368, "upload_time": "2014-10-22T12:23:32", "url": "https://files.pythonhosted.org/packages/32/9e/0927a4b397c3be02cee1e89705a0d2d95758c3b10777668f2de456e9dd30/gocept.pytestlayer-2.1.zip" } ], "3.0": [ { "comment_text": "", "digests": { "md5": "78d909acf0acd6732327776ce32c1338", "sha256": "43b03c19473a357f9a59e62f8eed5fc103e41b4f62891d57806dee2d958b0177" }, "downloads": -1, "filename": "gocept.pytestlayer-3.0.tar.gz", "has_sig": false, "md5_digest": "78d909acf0acd6732327776ce32c1338", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21295, "upload_time": "2016-04-14T11:20:25", "url": "https://files.pythonhosted.org/packages/bb/e4/35ee5767f4629e40ea729c7c6a6606adf7a5a8590ccba3e1a2752b21ac81/gocept.pytestlayer-3.0.tar.gz" } ], "4.0": [ { "comment_text": "", "digests": { "md5": "f8bb072b87f5d50f4027db4783774726", "sha256": "01b768a0356c88fa365253258d2ec6d244e8c4bfe1e1da60eafbbd621af42b92" }, "downloads": -1, "filename": "gocept.pytestlayer-4.0.tar.gz", "has_sig": false, "md5_digest": "f8bb072b87f5d50f4027db4783774726", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19917, "upload_time": "2016-04-27T15:17:48", "url": "https://files.pythonhosted.org/packages/01/21/988c0a98212661e90464877c7969cef2229383612e7a807ffad1dc740c11/gocept.pytestlayer-4.0.tar.gz" } ], "5.0": [ { "comment_text": "", "digests": { "md5": "6652411be4f15933856cb157375ae52b", "sha256": "80ebe5d2f3e34ef636203c78b0e2b53c5977bd5ea337902ba4436f4d182d3c51" }, "downloads": -1, "filename": "gocept.pytestlayer-5.0.tar.gz", "has_sig": false, "md5_digest": "6652411be4f15933856cb157375ae52b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20528, "upload_time": "2016-08-23T10:45:21", "url": "https://files.pythonhosted.org/packages/5d/09/b72b87846c97afc06ee116b4a68c6d65192d8d0bdae85a56dbc02c8dbf9f/gocept.pytestlayer-5.0.tar.gz" } ], "5.1": [ { "comment_text": "", "digests": { "md5": "b901931fed38d807318a15050ed88c20", "sha256": "0bd744ee51dbafbd5e855b663c148a36139868ade61afe006f8288c1c5ae6608" }, "downloads": -1, "filename": "gocept.pytestlayer-5.1.tar.gz", "has_sig": false, "md5_digest": "b901931fed38d807318a15050ed88c20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22166, "upload_time": "2016-12-02T08:55:16", "url": "https://files.pythonhosted.org/packages/f3/47/2f548e6d8cb735ad4c01b362cc1a9ee7af66e64151f3bf6aa14c40f31209/gocept.pytestlayer-5.1.tar.gz" } ], "6.0": [ { "comment_text": "", "digests": { "md5": "4669261ce44068a0f67058979c2223c2", "sha256": "04b944eed34b48de9c854dab99070072c47d7e1a0feff58db3031c15bbe4fd95" }, "downloads": -1, "filename": "gocept.pytestlayer-6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4669261ce44068a0f67058979c2223c2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 38310, "upload_time": "2018-10-24T08:26:28", "url": "https://files.pythonhosted.org/packages/62/2f/5b9ef9c3cc541cc099f6b5bcc0c5403a4f901e07cfc9c0267caea51091bb/gocept.pytestlayer-6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "18bdb7122ba5c16c1d60f1e7abbb7817", "sha256": "b11a0b9877749bc04146490cbafe80fc225679e43a6bf2c8da2a9ff745c94e64" }, "downloads": -1, "filename": "gocept.pytestlayer-6.0.tar.gz", "has_sig": false, "md5_digest": "18bdb7122ba5c16c1d60f1e7abbb7817", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21132, "upload_time": "2018-10-24T08:26:30", "url": "https://files.pythonhosted.org/packages/c7/0c/2c80a6187afff5b54cc2a450377e6cd4583392006da0db308fd76dc94677/gocept.pytestlayer-6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4669261ce44068a0f67058979c2223c2", "sha256": "04b944eed34b48de9c854dab99070072c47d7e1a0feff58db3031c15bbe4fd95" }, "downloads": -1, "filename": "gocept.pytestlayer-6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4669261ce44068a0f67058979c2223c2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 38310, "upload_time": "2018-10-24T08:26:28", "url": "https://files.pythonhosted.org/packages/62/2f/5b9ef9c3cc541cc099f6b5bcc0c5403a4f901e07cfc9c0267caea51091bb/gocept.pytestlayer-6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "18bdb7122ba5c16c1d60f1e7abbb7817", "sha256": "b11a0b9877749bc04146490cbafe80fc225679e43a6bf2c8da2a9ff745c94e64" }, "downloads": -1, "filename": "gocept.pytestlayer-6.0.tar.gz", "has_sig": false, "md5_digest": "18bdb7122ba5c16c1d60f1e7abbb7817", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21132, "upload_time": "2018-10-24T08:26:30", "url": "https://files.pythonhosted.org/packages/c7/0c/2c80a6187afff5b54cc2a450377e6cd4583392006da0db308fd76dc94677/gocept.pytestlayer-6.0.tar.gz" } ] }