{ "info": { "author": "Satoshi SUZUKI", "author_email": "studio3104.com@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "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.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing" ], "description": "==============\npytest-chalice\n==============\n\n.. image:: https://img.shields.io/pypi/v/pytest-chalice.svg\n :target: https://pypi.org/project/pytest-chalice\n :alt: PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-chalice.svg\n :target: https://pypi.org/project/pytest-chalice\n :alt: Python versions\n\n.. image:: https://travis-ci.org/studio3104/pytest-chalice.svg?branch=master\n :target: https://travis-ci.org/studio3104/pytest-chalice\n :alt: See Build Status on Travis CI\n\nA set of py.test fixtures for AWS Chalice\n\n----\n\nFeatures\n------------\n\n- Launch the local gateway per test function\n- Provide an abstracted client fixture to access the local gateway\n- Expose an interface to overwrite response context with arbitrary objects\n - As of Chalice version 1.8.0, LocalGateway object doesn't handle Cognito's context\n - Not only for this purpose, it's an interface provided to allow custom contexts in unit tests\n\n\nRequirements\n------------\n\n- `pytest`_\n- `Chalice`_\n\n\nInstallation\n------------\n\nYou can install \"pytest-chalice\" via `pip`_ from `PyPI`_::\n\n $ pip install pytest-chalice\n\n\nUsage\n-----\n\n.. code-block:: python\n\n from chalice import Chalice\n\n app = Chalice(__name__)\n\n\n @app.route('/')\n def index:\n return {'hello': 'world'}\n\n\n.. code-block:: python\n\n from http import HTTPStatus\n\n\n def test_index(client):\n response = client.get('/')\n assert response.status_code == HTTPStatus.OK\n assert response.json == {'hello': 'world'}\n\n\nSee `examples `_ for more detailed\n\nContributing\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\nLicense\n-------\n\nDistributed under the terms of the `MIT`_ license, \"pytest-chalice\" is free and open source software\n\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\n.. _`@hackebrot`: https://github.com/hackebrot\n.. _`MIT`: http://opensource.org/licenses/MIT\n.. _`BSD-3`: http://opensource.org/licenses/BSD-3-Clause\n.. _`GNU GPL v3.0`: http://www.gnu.org/licenses/gpl-3.0.txt\n.. _`Apache Software License 2.0`: http://www.apache.org/licenses/LICENSE-2.0\n.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin\n.. _`file an issue`: https://github.com/studio3104/pytest-chalice/issues\n.. _`pytest`: https://github.com/pytest-dev/pytest\n.. _`tox`: https://tox.readthedocs.io/en/latest/\n.. _`pip`: https://pypi.org/project/pip/\n.. _`PyPI`: https://pypi.org/project\n.. _`Chalice`: https://github.com/aws/chalice", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/studio3104/pytest-chalice", "keywords": "", "license": "MIT", "maintainer": "Satoshi SUZUKI", "maintainer_email": "studio3104.com@gmail.com", "name": "pytest-chalice", "package_url": "https://pypi.org/project/pytest-chalice/", "platform": "", "project_url": "https://pypi.org/project/pytest-chalice/", "project_urls": { "Homepage": "https://github.com/studio3104/pytest-chalice" }, "release_url": "https://pypi.org/project/pytest-chalice/0.0.4/", "requires_dist": null, "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "A set of py.test fixtures for AWS Chalice", "version": "0.0.4" }, "last_serial": 5281237, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "89412fc0272ad6a646817681388d983d", "sha256": "b323f7218fefe17ebd46455cb9b00bcfb0befd23b3d0c29de5e2d6d8575c2ebd" }, "downloads": -1, "filename": "pytest-chalice-0.0.1.tar.gz", "has_sig": false, "md5_digest": "89412fc0272ad6a646817681388d983d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3867, "upload_time": "2019-05-13T02:43:47", "url": "https://files.pythonhosted.org/packages/fa/b3/b5a48bcb1ff962002dd7c205beff1c9fb4209d0873413f7eda7262a1a3a7/pytest-chalice-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "883213dc670ee5886f0dc8ad6677faeb", "sha256": "d7c3cae108dbf90037ac7cf433855a383792c49e7fe641774adc1e711a792c6f" }, "downloads": -1, "filename": "pytest-chalice-0.0.2.tar.gz", "has_sig": false, "md5_digest": "883213dc670ee5886f0dc8ad6677faeb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 13667, "upload_time": "2019-05-13T11:52:47", "url": "https://files.pythonhosted.org/packages/9e/58/7b4028ba31bced903edefdc8a8f09545113fbffd347d76238fb23fe78457/pytest-chalice-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "8a955890a55163b4135f371f5e85b582", "sha256": "d86155c84292f7f6e2b788382440bd68e6b3a627226f39a329a1656a87e4c5ce" }, "downloads": -1, "filename": "pytest-chalice-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8a955890a55163b4135f371f5e85b582", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 13731, "upload_time": "2019-05-13T12:18:35", "url": "https://files.pythonhosted.org/packages/dc/b8/7de578f8a3ae0276470af6e93df905f20902bb40d8d7e4a5ff7b52108a4b/pytest-chalice-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "8e1517cf6dadaac338b15cd8cf972b98", "sha256": "1cf7ba41970d574315e5a2ae241476046b2fc674ce7d38d307560ddb4e433d3a" }, "downloads": -1, "filename": "pytest-chalice-0.0.4.tar.gz", "has_sig": false, "md5_digest": "8e1517cf6dadaac338b15cd8cf972b98", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 14903, "upload_time": "2019-05-17T08:52:50", "url": "https://files.pythonhosted.org/packages/19/85/fca08e04a881b0aa9f58f3834c76d0f8d583e9583d5ba6e192866b2f97a0/pytest-chalice-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8e1517cf6dadaac338b15cd8cf972b98", "sha256": "1cf7ba41970d574315e5a2ae241476046b2fc674ce7d38d307560ddb4e433d3a" }, "downloads": -1, "filename": "pytest-chalice-0.0.4.tar.gz", "has_sig": false, "md5_digest": "8e1517cf6dadaac338b15cd8cf972b98", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 14903, "upload_time": "2019-05-17T08:52:50", "url": "https://files.pythonhosted.org/packages/19/85/fca08e04a881b0aa9f58f3834c76d0f8d583e9583d5ba6e192866b2f97a0/pytest-chalice-0.0.4.tar.gz" } ] }