{"id":15685483,"url":"https://github.com/sloria/webtest-aiohttp","last_synced_at":"2025-07-27T01:05:00.431Z","repository":{"id":62588652,"uuid":"44575504","full_name":"sloria/webtest-aiohttp","owner":"sloria","description":"Integration of WebTest with aiohttp.web applications","archived":false,"fork":false,"pushed_at":"2023-01-22T00:47:14.000Z","size":30,"stargazers_count":8,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T12:57:30.569Z","etag":null,"topics":["aiohttp","asyncio","python-3","testing","webtest","wsgi"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sloria.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-20T01:52:19.000Z","updated_at":"2025-03-17T13:31:17.000Z","dependencies_parsed_at":"2022-11-03T17:53:55.558Z","dependency_job_id":null,"html_url":"https://github.com/sloria/webtest-aiohttp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sloria/webtest-aiohttp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-aiohttp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-aiohttp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-aiohttp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-aiohttp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sloria","download_url":"https://codeload.github.com/sloria/webtest-aiohttp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-aiohttp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267278631,"owners_count":24063252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiohttp","asyncio","python-3","testing","webtest","wsgi"],"created_at":"2024-10-03T17:25:28.476Z","updated_at":"2025-07-27T01:05:00.396Z","avatar_url":"https://github.com/sloria.png","language":"Python","readme":"***************\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\u003e=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\u003c2.0.0, you will need to install webtest-aiohttp 1.x.**\n\n::\n\n    pip install 'webtest-aiohttp\u003c2.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 \u003chttps://github.com/sloria/webtest-aiohttp/blob/master/LICENSE\u003e`_ file for more details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloria%2Fwebtest-aiohttp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloria%2Fwebtest-aiohttp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloria%2Fwebtest-aiohttp/lists"}