{ "info": { "author": "Endurant Devs", "author_email": "info@endurantdevs.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Testing" ], "description": "# webtest-sanic\nIntegration of WebTest with [Sanic](https://github.com/huge-success/sanic) applications\nInitially it was created to enable Sanic support in [Webargs](https://github.com/sloria/webargs) module\n\n[![Build Status](https://img.shields.io/travis/EndurantDevs/webtest-sanic.svg?logo=travis)](https://travis-ci.org/EndurantDevs/webtest-sanic) [![Latest Version](https://pypip.in/version/webtest-sanic/badge.svg)](https://pypi.python.org/pypi/webtest-sanic/) [![Python Versions](https://img.shields.io/pypi/pyversions/webtest-sanic.svg)](https://github.com/EndurantDevs/webtest-sanic/blob/master/setup.py) [![Tests Coverage](https://img.shields.io/codecov/c/github/EndurantDevs/webtest-sanic/master.svg)](https://codecov.io/gh/EndurantDevs/webtest-sanic)\n\n### Example Code ###\n\n```python\n import asyncio\n\n from sanic import Sanic\n from sanic.response import json\n from webtest_sanic import TestApp\n\n app = Sanic()\n\n @app.route('/')\n async def test(request):\n return json({'hello': 'world'})\n\n loop = asyncio.new_event_loop()\n\n def test_hello():\n client = TestApp(app, loop=loop)\n res = client.get('/')\n assert res.status_code == 200\n assert res.json == {'message': 'Hello world'}\n```\n\n\n### Installing\n\nIt is easy to do from `pip`\n\n```\npip install webtest-sanic\n```\n\nor from sources\n\n```\ngit clone git@github.com:EndurantDevs/webtest-sanic.git\ncd webtest-sanic\npython setup.py install\n```\n\n## Running the tests\n\nTo be sure everything is fine before installation from sources, just run:\n```\npython setup.py test\n```\nOr\n```\npytest tests/\n```\n\n### Credits ###\n\nThis code is based on [webtest-aiohttp](https://github.com/sloria/webtest-aiohttp) by [Steven Loria](https://github.com/sloria) and [pytest-sanic](https://github.com/yunstanford/pytest-sanic) by [Yun Xu](https://github.com/yunstanford)\nPlease check [NOTICE](NOTICE.md) for more info.\n\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/EndurantDevs/webtest_sanic", "keywords": "webtest-sanic webtest sanic testing wsgi asyncio", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "webtest-sanic", "package_url": "https://pypi.org/project/webtest-sanic/", "platform": "", "project_url": "https://pypi.org/project/webtest-sanic/", "project_urls": { "Homepage": "https://github.com/EndurantDevs/webtest_sanic" }, "release_url": "https://pypi.org/project/webtest-sanic/0.2.0/", "requires_dist": [ "webtest", "aiohttp" ], "requires_python": "", "summary": "webtest-sanic provides integration of WebTest with sanic applications", "version": "0.2.0" }, "last_serial": 5613800, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "59941546f2d4f3338f3035b3dbd47789", "sha256": "04ee016dc06bce5ce400d66d96c43580ac7b709a21ee62a6aee0bd91fd05e87b" }, "downloads": -1, "filename": "webtest_sanic-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "59941546f2d4f3338f3035b3dbd47789", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2115, "upload_time": "2018-09-16T12:51:19", "url": "https://files.pythonhosted.org/packages/ae/57/5953054c0041bd0910dd18523d63241b7bfca5a834b52bc7b0b356a98eb7/webtest_sanic-0.1-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "747c32e9d5bc2748bd939f44aec2add4", "sha256": "49674f33d88b544cdc0eec1831c530b86f78a2f6b3de801079d634fac23e032b" }, "downloads": -1, "filename": "webtest_sanic-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "747c32e9d5bc2748bd939f44aec2add4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2100, "upload_time": "2018-09-16T12:57:03", "url": "https://files.pythonhosted.org/packages/f8/f4/e5836dd64ce3a7eaee2d39da8ea4d8ea5c42320a5b11990ac9e22ecf37fa/webtest_sanic-0.1.1-py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "4af8532952b8d9884003a3169f48993a", "sha256": "fee4f899acfe5f70b0b455d1fa5b0765be2581f9a4098c6b23012e3cc728f1a0" }, "downloads": -1, "filename": "webtest_sanic-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4af8532952b8d9884003a3169f48993a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2098, "upload_time": "2018-09-16T13:02:19", "url": "https://files.pythonhosted.org/packages/25/96/038933de715a9cc6a725ff46adb613d2665afeba1c2ee0e93b8c24fa99d8/webtest_sanic-0.1.2-py3-none-any.whl" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "1e9872fc98921039876fb23c6fac51b8", "sha256": "47b0dff34b76aa1e605adbfc0e2b1f0a90a95817981de63a307acb4142d05704" }, "downloads": -1, "filename": "webtest_sanic-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1e9872fc98921039876fb23c6fac51b8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2094, "upload_time": "2018-09-16T13:23:04", "url": "https://files.pythonhosted.org/packages/1b/b3/c6b2e226c2b37d7a19a90a358a7e2d6d8958228492618b76afd52bc6de51/webtest_sanic-0.1.3-py3-none-any.whl" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "f16b013813b67d1755550ac77636c177", "sha256": "fcd81cfe10cfbab3477ccf8d0fdbff19e14e32fac5e1fed5ad820ead84564e4e" }, "downloads": -1, "filename": "webtest_sanic-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "f16b013813b67d1755550ac77636c177", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5835, "upload_time": "2018-09-16T13:45:41", "url": "https://files.pythonhosted.org/packages/e4/5b/f83575f8eef6f374953bd338c54813158ff64b8d6d6d6a508962c61c6666/webtest_sanic-0.1.4-py3-none-any.whl" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "75203bb34f3e05ca6cd9c0aa5c50c457", "sha256": "119273f18ce3c2c07464471c524cee191a9942e10951b3a85694892242afc027" }, "downloads": -1, "filename": "webtest_sanic-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "75203bb34f3e05ca6cd9c0aa5c50c457", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5823, "upload_time": "2018-09-16T18:41:36", "url": "https://files.pythonhosted.org/packages/3e/10/ef509b16ee3d5f8ec3137b0d15ffa56a8949d77fe3490ed36f696d54d915/webtest_sanic-0.1.5-py3-none-any.whl" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "65748a6a4a760e78b8fcf2f1fbb6d295", "sha256": "63c5a9fcce563f160af99165155514b91eeb456b9c5c25c63ee5fe862a49200c" }, "downloads": -1, "filename": "webtest_sanic-0.1.6-py3-none-any.whl", "has_sig": false, "md5_digest": "65748a6a4a760e78b8fcf2f1fbb6d295", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5823, "upload_time": "2018-09-17T15:39:43", "url": "https://files.pythonhosted.org/packages/47/6d/1016d1e1e6c58a5f59025a0c28b695d8cb86da27f85f4ef171bb1789a2e7/webtest_sanic-0.1.6-py3-none-any.whl" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "a63afbe86aff13631ed00b9d2cd13aed", "sha256": "1f7371ee6b59b53314762ad01c7cd946dd9aadec9f5e553621db8493a3e50e38" }, "downloads": -1, "filename": "webtest-sanic-0.1.7.tar.gz", "has_sig": false, "md5_digest": "a63afbe86aff13631ed00b9d2cd13aed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5259, "upload_time": "2018-10-30T09:59:01", "url": "https://files.pythonhosted.org/packages/a8/53/00f6a4a5c0a126416a6b5454beacca5aef4da175b6c782de4fe9a5df69bc/webtest-sanic-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "2852196f10ae1c3207357da09e60f724", "sha256": "2473ba5115733bfad6a29a0c20696990832950ef4f24cbb2827e9374d950c4a5" }, "downloads": -1, "filename": "webtest_sanic-0.1.8-py3-none-any.whl", "has_sig": false, "md5_digest": "2852196f10ae1c3207357da09e60f724", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7175, "upload_time": "2019-07-30T10:57:12", "url": "https://files.pythonhosted.org/packages/c8/90/234753b616c2ce65680cfadaf30cf4acecd57150a3416435c96b68654179/webtest_sanic-0.1.8-py3-none-any.whl" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3f6a06704355b2a8a1c70a00e1775605", "sha256": "ef09c72061369530b6f384368497378da5008414b871ed4a636148035343d68c" }, "downloads": -1, "filename": "webtest_sanic-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3f6a06704355b2a8a1c70a00e1775605", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7217, "upload_time": "2019-07-31T14:34:32", "url": "https://files.pythonhosted.org/packages/80/4e/a3f0e87ec1b1b43395918f69325203705ae843d5c3ec8e8510788cf0f65c/webtest_sanic-0.2.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3f6a06704355b2a8a1c70a00e1775605", "sha256": "ef09c72061369530b6f384368497378da5008414b871ed4a636148035343d68c" }, "downloads": -1, "filename": "webtest_sanic-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "3f6a06704355b2a8a1c70a00e1775605", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7217, "upload_time": "2019-07-31T14:34:32", "url": "https://files.pythonhosted.org/packages/80/4e/a3f0e87ec1b1b43395918f69325203705ae843d5c3ec8e8510788cf0f65c/webtest_sanic-0.2.0-py3-none-any.whl" } ] }