{ "info": { "author": "Steven Loria", "author_email": "sloria1@gmail.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.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Testing" ], "description": "***************\nwebtest-aiohttp\n***************\n\n.. image:: https://badge.fury.io/py/webtest-aiohttp.svg\n :target: http://badge.fury.io/py/webtest-aiohttp\n :alt: Latest version\n\n.. image:: https://travis-ci.org/sloria/webtest-aiohttp.svg\n :target: https://travis-ci.org/sloria/webtest-aiohttp\n :alt: Travis-CI\n\nwebtest-aiohttp provides integration of WebTest with aiohttp.web applications.\n\nSupports aiohttp>=2.3.8.\n\n.. code-block:: python\n\n from aiohttp import web\n from webtest_aiohttp import TestApp\n\n app = web.Application()\n\n async def hello(request):\n return web.json_response({'message': 'Hello world'})\n\n app.router.add_route('GET', '/', handler)\n\n def test_hello(loop):\n client = TestApp(app, loop=loop)\n res = client.get('/')\n assert res.status_code == 200\n assert res.json == {'message': 'Hello world'}\n\nInstallation\n============\n::\n\n pip install webtest-aiohttp\n\n\n**Note: If you are using aiohttp<2.0.0, you will need to install webtest-aiohttp 1.x.**\n\n::\n\n pip install 'webtest-aiohttp<2.0.0'\n\n\nUsage with pytest\n=================\n\nIf you are using pytest and pytest-aiohttp, you can make your tests more\nconcise with a fixture.\n\n\n.. code-block:: python\n\n from aiohttp import web\n from webtest_aiohttp import TestApp as WebTestApp\n\n app = web.Application()\n\n async def hello(request):\n return web.json_response({'message': 'Hello world'})\n\n app.router.add_route('GET', '/', handler)\n\n @pytest.fixture()\n def testapp(loop):\n return WebTestApp(app, loop=loop)\n\n def test_get(testapp):\n assert testapp.get('/').json == {'message': 'Hello world'}\n\nProject Links\n=============\n\n- PyPI: https://pypi.python.org/pypi/webtest-aiohttp\n- Issues: https://github.com/sloria/webtest-aiohttp/issues\n\nLicense\n=======\n\nMIT licensed. See the bundled `LICENSE `_ file for more details.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sloria/webtest-aiohttp", "keywords": "webtest-aiohttp webtest aiohttp testing wsgi asyncio", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "webtest-aiohttp", "package_url": "https://pypi.org/project/webtest-aiohttp/", "platform": "", "project_url": "https://pypi.org/project/webtest-aiohttp/", "project_urls": { "Homepage": "https://github.com/sloria/webtest-aiohttp" }, "release_url": "https://pypi.org/project/webtest-aiohttp/2.0.0/", "requires_dist": [ "webtest" ], "requires_python": "", "summary": "webtest-aiohttp provides integration of WebTest with aiohttp.web applications", "version": "2.0.0" }, "last_serial": 3562499, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "4457637e35173dda6a121aad9fbd1858", "sha256": "90fb082d2578bed37ce9eb8489dc2eb8e9bc30cafe294e857ef23334f2a9334e" }, "downloads": -1, "filename": "webtest_aiohttp-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4457637e35173dda6a121aad9fbd1858", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6059, "upload_time": "2015-10-20T02:04:01", "url": "https://files.pythonhosted.org/packages/13/68/f6a49410228cd81de128b38361548f1e38f34d324c7ffec4eb1414b6b848/webtest_aiohttp-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "714346924ccc4648b0da3d7f72b37e3e", "sha256": "7c8125e29776125d156e72be3659d0a35511e7785609fde9476acb61ebf7902a" }, "downloads": -1, "filename": "webtest-aiohttp-1.0.0.tar.gz", "has_sig": false, "md5_digest": "714346924ccc4648b0da3d7f72b37e3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4020, "upload_time": "2015-10-20T02:04:14", "url": "https://files.pythonhosted.org/packages/74/b7/5a7b03964db9c315427541069aa5a89d7bea0ef33cb8bc0b5a97781770a7/webtest-aiohttp-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "f562e1e3dd34539ddc7cff8f642ded71", "sha256": "a99721b902511d16bcb6cd4f23c5981e3897c19e9b3d4a119b7ad08f4949f908" }, "downloads": -1, "filename": "webtest_aiohttp-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f562e1e3dd34539ddc7cff8f642ded71", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6123, "upload_time": "2016-03-13T18:01:43", "url": "https://files.pythonhosted.org/packages/b6/b0/9ede58f937212f688de8e1b7997125bb17d58ba3e42f97c8fa16167e7dc1/webtest_aiohttp-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "288cd735c2ded66a5538f14da61adc30", "sha256": "f6da1a6c40def842c8e37f480c2f31e1f40deb10f1c1fd7f63cb3b21bc15f37c" }, "downloads": -1, "filename": "webtest-aiohttp-1.1.0.tar.gz", "has_sig": false, "md5_digest": "288cd735c2ded66a5538f14da61adc30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4120, "upload_time": "2016-03-13T18:01:48", "url": "https://files.pythonhosted.org/packages/f0/e5/5285f906f072828a99fd9dbf7a376dd4aaaa3da74963745f3233de6cda35/webtest-aiohttp-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "13dbde2d4fec7872fae097c57d343546", "sha256": "70cc5d83791e71ba69d65217151f35eef2d9f0c6fedbd1380f571123a62c5cb8" }, "downloads": -1, "filename": "webtest_aiohttp-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "13dbde2d4fec7872fae097c57d343546", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7451, "upload_time": "2017-01-08T23:24:31", "url": "https://files.pythonhosted.org/packages/82/2b/c0a26a7158634ced8962efece4584289a0807244eec37be38f4b915d16bb/webtest_aiohttp-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "af851508f4a86c23c39ad408a5bf37bd", "sha256": "252489d0b7fc74a54bfcc4498c93f47e17cdb960ffe1dc295854590d0c161ee0" }, "downloads": -1, "filename": "webtest-aiohttp-1.1.1.tar.gz", "has_sig": false, "md5_digest": "af851508f4a86c23c39ad408a5bf37bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9242, "upload_time": "2017-01-08T23:24:33", "url": "https://files.pythonhosted.org/packages/86/cc/2597dc5c743129523d09146d9a1038956cc35ec248cf3ea6fd8acfa82b41/webtest-aiohttp-1.1.1.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "b1578608c5c2c9a436de3e375c2260cf", "sha256": "a8fc39fd73f30bb56c8b990e6a70ca477522f5b1a91b3b6c91401ecbca750847" }, "downloads": -1, "filename": "webtest_aiohttp-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b1578608c5c2c9a436de3e375c2260cf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4773, "upload_time": "2018-02-08T04:17:35", "url": "https://files.pythonhosted.org/packages/f4/64/6ac160e44859602962495e0d52ef8bac1e244c48365b38d7424d2dc70222/webtest_aiohttp-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "768c20c45e4f29c07c131cf5a93a9ebe", "sha256": "58e2a2f13078c3f1f23ccebef03de4d6d118d096cd6e9d0d190e359d9ffb11f8" }, "downloads": -1, "filename": "webtest-aiohttp-2.0.0.tar.gz", "has_sig": false, "md5_digest": "768c20c45e4f29c07c131cf5a93a9ebe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8365, "upload_time": "2018-02-08T04:17:36", "url": "https://files.pythonhosted.org/packages/1f/46/9c3f326522b83253b7156007c96977d6bb5fcf78b1dcb1da1b928ab876b8/webtest-aiohttp-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b1578608c5c2c9a436de3e375c2260cf", "sha256": "a8fc39fd73f30bb56c8b990e6a70ca477522f5b1a91b3b6c91401ecbca750847" }, "downloads": -1, "filename": "webtest_aiohttp-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b1578608c5c2c9a436de3e375c2260cf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4773, "upload_time": "2018-02-08T04:17:35", "url": "https://files.pythonhosted.org/packages/f4/64/6ac160e44859602962495e0d52ef8bac1e244c48365b38d7424d2dc70222/webtest_aiohttp-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "768c20c45e4f29c07c131cf5a93a9ebe", "sha256": "58e2a2f13078c3f1f23ccebef03de4d6d118d096cd6e9d0d190e359d9ffb11f8" }, "downloads": -1, "filename": "webtest-aiohttp-2.0.0.tar.gz", "has_sig": false, "md5_digest": "768c20c45e4f29c07c131cf5a93a9ebe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8365, "upload_time": "2018-02-08T04:17:36", "url": "https://files.pythonhosted.org/packages/1f/46/9c3f326522b83253b7156007c96977d6bb5fcf78b1dcb1da1b928ab876b8/webtest-aiohttp-2.0.0.tar.gz" } ] }