{ "info": { "author": "Dennis Miasoutov", "author_email": "dmiasoutov@wayfair.com", "bugtrack_url": null, "classifiers": [ "Framework :: Pytest", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# Eucalyptus - BDD plugin for Pytest\n> A nice fork of [Aloe](https://github.com/aloetesting/aloe). \nMigrated from Nose to Pytest.\n\n[![pypi][pypi]][pypi-url]\n[![pypi-versions][pypi-versions]][pypi-url]\n[![builds][builds]][builds-url]\n[![docs][docs]][docs-url]\n[![coverage][cover]][cover-url]\n\n**pytest-eucalyptus** has been built to feature the best of both worlds: \n- [Aloe](https://github.com/aloetesting/aloe) which implements great infrastructure and uses the original Gherkin parser.\n- [pytest-bdd](https://github.com/pytest-dev/pytest-bdd) does not require a separate runner and benefits from the power and flexibility of Pytest.\n\n## Quick Start\n\n1. Create new module and add empty `__init__.py`.\n\n2. Install Pytest and Eucalyptus:\n\n ```sh\n pip install pytest pytest-eucalyptus\n ```\n\n3. Let's assume we are testing the following implementation of `calculator.py`:\n\n ```py\n\n def add(*numbers):\n return sum(numbers)\n ```\n\n4. Write your first feature ``tests/calculator.feature``:\n\n ```feature\n Feature: Add up numbers\n\n As a mathematically challenged user\n I want to add numbers\n So that I know the total\n\n Scenario: Add two numbers\n Given I have entered 50 into the calculator\n And I have entered 30 into the calculator\n When I press add\n Then the result should be 80 on the screen\n ```\n\n5. Add the definitions in ``tests/conftest.py``:\n\n ```py\n from calculator import add\n from pytest_eucalyptus import before, step, world\n\n\n @before.each_example\n def clear(*args):\n \"\"\"Reset the calculator state before each scenario.\"\"\"\n world.numbers = []\n world.result = 0\n\n\n @step(r'I have entered (\\d+) into the calculator')\n def enter_number(self, number):\n world.numbers.append(float(number))\n\n\n @step(r'I press add')\n def press_add(self):\n world.result = add(*world.numbers)\n\n\n @step(r'The result should be (\\d+) on the screen')\n def assert_result(self, result):\n assert world.result == float(result)\n ```\n\n6. Run the code\n\n```sh\n $ pytest\n```\n\n```\n============================= test session starts ==============================\nplatform darwin -- Python 3.7.3, pytest-4.6.3, py-1.8.0, pluggy-0.12.0\nrootdir: /Users/eucalyptus-user/src/test\nplugins: eucalyptus-0.3.0\ncollected 1 item \n\ncalculator.feature . [100%]\n\n=========================== 1 passed in 0.01 seconds ===========================\n\n```\n\n## Documentation\n\nPlease find more docs [here](https://eucalyptus.readthedocs.io/).\n\n## License\n\nPytest-Eucalyptus is licensed under the Apache License 2.0 \u2013 see the [LICENSE.md](https://github.com/wayfair/pytest-eucalyptus/blob/master/LICENSE) for specific details.\n\n[pypi]: https://img.shields.io/pypi/v/pytest-eucalyptus.svg\n[pypi-versions]: https://img.shields.io/pypi/pyversions/pytest-eucalyptus.svg\n[pypi-url]: https://pypi.org/project/pytest-eucalyptus\n\n[builds]: https://travis-ci.org/wayfair/pytest-eucalyptus.svg?branch=master\n[builds-url]: https://travis-ci.org/wayfair/pytest-eucalyptus\n\n[cover]: https://codecov.io/gh/wayfair/pytest-eucalyptus/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/wayfair/pytest-eucalyptus\n\n[docs]: https://readthedocs.org/projects/eucalyptus/badge/?version=latest\n[docs-url]: https://eucalyptus.readthedocs.io/?badge=latest\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wayfair/pytest-eucalyptus", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pytest-eucalyptus", "package_url": "https://pypi.org/project/pytest-eucalyptus/", "platform": "", "project_url": "https://pypi.org/project/pytest-eucalyptus/", "project_urls": { "Homepage": "https://github.com/wayfair/pytest-eucalyptus" }, "release_url": "https://pypi.org/project/pytest-eucalyptus/0.3.3/", "requires_dist": [ "ansicolors (>=1.1.8)", "colorama (>=0.3.9)", "future (>=0.17.0)", "gherkin-official (<5,>=4.1.3)", "repoze.lru", "pytest (>=4.2.0)", "coverage ; extra == 'tests_require'", "factory-boy ; extra == 'tests_require'", "mock ; extra == 'tests_require'", "pycodestyle ; extra == 'tests_require'", "pylint (>=1.9.3) ; extra == 'tests_require'", "setuptools-scm ; extra == 'tests_require'", "Sphinx (>=2.1.2) ; extra == 'tests_require'", "pytest-cov (==2.5.1) ; extra == 'tests_require'" ], "requires_python": "", "summary": "Pytest Plugin for BDD", "version": "0.3.3" }, "last_serial": 5673616, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7d2d33f3e2d542268bdfa49c3fb0e91a", "sha256": "c816599a47bab543cef5fa35f720f0354b308aa74c2a49aca6a4ec9ccc9eb76e" }, "downloads": -1, "filename": "pytest_eucalyptus-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7d2d33f3e2d542268bdfa49c3fb0e91a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 87972, "upload_time": "2019-07-01T21:21:00", "url": "https://files.pythonhosted.org/packages/a7/31/094b0833d64ea318fa47047e06814775204476ee98b6671bbe682f2ac253/pytest_eucalyptus-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a6d442a170bd970af11137270fe35239", "sha256": "5206d53889cead2f22cf2d8ad2ac82d29cb79bc36b3ccb850f8d8319a7fdd739" }, "downloads": -1, "filename": "pytest_eucalyptus-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a6d442a170bd970af11137270fe35239", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 85034, "upload_time": "2019-07-01T21:21:02", "url": "https://files.pythonhosted.org/packages/a8/ca/11275fa9bcdbd8c03b0f2fcc839518601320717a4f6ea1c861ef0635448f/pytest_eucalyptus-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "85fcd5f593bc335a4474674817a1b426", "sha256": "64d62e51c8f648b3ec418b3f8bfb8cca5b1bd2ccd0cd24b127a55df911f2b354" }, "downloads": -1, "filename": "pytest_eucalyptus-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "85fcd5f593bc335a4474674817a1b426", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 87972, "upload_time": "2019-07-01T21:26:08", "url": "https://files.pythonhosted.org/packages/02/4a/129f0ae2ee2579a001ffa323069c318c0dc9ab3e4b3c6ac3b6f7de159b7e/pytest_eucalyptus-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "53cf01e28ed6381b37a1bffd46fb12fc", "sha256": "4a30ae8e1a785d10251c688e72a2d737eaacc8caa1211dfc8b262109adab30ac" }, "downloads": -1, "filename": "pytest_eucalyptus-0.1.1.tar.gz", "has_sig": false, "md5_digest": "53cf01e28ed6381b37a1bffd46fb12fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 84328, "upload_time": "2019-07-01T21:26:09", "url": "https://files.pythonhosted.org/packages/e1/3d/4c4724919057e19a9cfa01927f2a8c18f12555cb2977041be55b2fad1f21/pytest_eucalyptus-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "58538be8d2745fb6956017241d8260e0", "sha256": "ba720482fcb2fff465975537b97c4c5c3822967ac521f646e3f600cf6c741a62" }, "downloads": -1, "filename": "pytest_eucalyptus-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "58538be8d2745fb6956017241d8260e0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 87993, "upload_time": "2019-07-16T17:10:13", "url": "https://files.pythonhosted.org/packages/cf/7b/ccd4c3ac6cd8bc579ca1d62c379bb26d41ca5e77bd9ab8d4f40efcb4e42b/pytest_eucalyptus-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "934a1c403582565f330b6efc7b9d78f0", "sha256": "c211be85226895bd60125ab756af8a312f371a0e3fc4eb52f7b820bfaf7e9812" }, "downloads": -1, "filename": "pytest_eucalyptus-0.2.0.tar.gz", "has_sig": false, "md5_digest": "934a1c403582565f330b6efc7b9d78f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 84365, "upload_time": "2019-07-16T17:10:15", "url": "https://files.pythonhosted.org/packages/9b/38/d2a86755a4cf3b3976ecc8be37a92d77f6120c3d60d5846ac72fcc38b585/pytest_eucalyptus-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "f01e1c1d8b280c19a3387ac824ec9f01", "sha256": "9d0ad1937407c452d45a52a1503b392d8f795422740bf7306590906dfb433a83" }, "downloads": -1, "filename": "pytest_eucalyptus-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f01e1c1d8b280c19a3387ac824ec9f01", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 88686, "upload_time": "2019-07-16T21:27:11", "url": "https://files.pythonhosted.org/packages/1f/49/9ddbeb13cb0fc3c0beec02d69e5255180903d76b2c4598db404c121a14db/pytest_eucalyptus-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e58b64b44f986cd91b418612e1fd7fbe", "sha256": "f7f28915602e188092fd1c9f74ef306a04e3562d45eb0b107d9797e6edb3f82f" }, "downloads": -1, "filename": "pytest_eucalyptus-0.3.0.tar.gz", "has_sig": false, "md5_digest": "e58b64b44f986cd91b418612e1fd7fbe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 84846, "upload_time": "2019-07-16T21:27:13", "url": "https://files.pythonhosted.org/packages/20/3f/cb07bf8016c59f6ac353ff8f09be12bf3f6829c24e2dbf486ee3e9763bac/pytest_eucalyptus-0.3.0.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "f97876d00048ccdbf2501353b54c4b5b", "sha256": "6ad3776fba884a7a17ba54fa61a05ddd590af936cb883a08b4a48261985efa90" }, "downloads": -1, "filename": "pytest_eucalyptus-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f97876d00048ccdbf2501353b54c4b5b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 89660, "upload_time": "2019-08-13T20:39:46", "url": "https://files.pythonhosted.org/packages/f5/6d/aaa1ea4da6536b41dc68908b27b871731c8058c2a33d7a246a90762b173a/pytest_eucalyptus-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1e36a4584fd8b21b45e0acacbd59ef7", "sha256": "18e9762207f3cffc8114141705eb07798121bfe29d3985c390c091a136c33484" }, "downloads": -1, "filename": "pytest_eucalyptus-0.3.3.tar.gz", "has_sig": false, "md5_digest": "f1e36a4584fd8b21b45e0acacbd59ef7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82129, "upload_time": "2019-08-13T20:39:47", "url": "https://files.pythonhosted.org/packages/54/57/9c2ab85a954f3c9bd3d54c48f86fdc26b10b116cb634cc19a18f01cecf85/pytest_eucalyptus-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f97876d00048ccdbf2501353b54c4b5b", "sha256": "6ad3776fba884a7a17ba54fa61a05ddd590af936cb883a08b4a48261985efa90" }, "downloads": -1, "filename": "pytest_eucalyptus-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f97876d00048ccdbf2501353b54c4b5b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 89660, "upload_time": "2019-08-13T20:39:46", "url": "https://files.pythonhosted.org/packages/f5/6d/aaa1ea4da6536b41dc68908b27b871731c8058c2a33d7a246a90762b173a/pytest_eucalyptus-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1e36a4584fd8b21b45e0acacbd59ef7", "sha256": "18e9762207f3cffc8114141705eb07798121bfe29d3985c390c091a136c33484" }, "downloads": -1, "filename": "pytest_eucalyptus-0.3.3.tar.gz", "has_sig": false, "md5_digest": "f1e36a4584fd8b21b45e0acacbd59ef7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82129, "upload_time": "2019-08-13T20:39:47", "url": "https://files.pythonhosted.org/packages/54/57/9c2ab85a954f3c9bd3d54c48f86fdc26b10b116cb634cc19a18f01cecf85/pytest_eucalyptus-0.3.3.tar.gz" } ] }