{"id":15697294,"url":"https://github.com/sloria/webtest-asgi","last_synced_at":"2025-08-14T11:43:54.471Z","repository":{"id":51726417,"uuid":"163900064","full_name":"sloria/webtest-asgi","owner":"sloria","description":"Integration of WebTest with ASGI applications.","archived":false,"fork":false,"pushed_at":"2025-08-04T20:36:25.000Z","size":63,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-04T23:02:03.092Z","etag":null,"topics":["asgi","starlette","testing","webtest"],"latest_commit_sha":null,"homepage":"","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":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-01-02T23:27:59.000Z","updated_at":"2025-06-03T19:25:54.000Z","dependencies_parsed_at":"2025-08-04T22:17:41.583Z","dependency_job_id":"9774d5ef-743b-45d6-9ecc-aa2c0d5d3b98","html_url":"https://github.com/sloria/webtest-asgi","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sloria/webtest-asgi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-asgi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-asgi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-asgi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-asgi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sloria","download_url":"https://codeload.github.com/sloria/webtest-asgi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sloria%2Fwebtest-asgi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270414550,"owners_count":24579552,"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-08-14T02:00:10.309Z","response_time":75,"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":["asgi","starlette","testing","webtest"],"created_at":"2024-10-03T19:15:34.822Z","updated_at":"2025-08-14T11:43:54.460Z","avatar_url":"https://github.com/sloria.png","language":"Python","readme":"************\nwebtest-asgi\n************\n\n.. image:: https://badgen.net/pypi/v/webtest-asgi\n  :alt: Latest version\n  :target: https://pypi.org/project/webtest-asgi/\n\n.. image:: https://github.com/sloria/webtest-asgi/actions/workflows/build-release.yml/badge.svg\n  :alt: Build status\n  :target: https://github.com/sloria/webtest-asgi/actions/workflows/build-release.yml\n\n\nwebtest-asgi provides integration of `WebTest \u003chttps://docs.pylonsproject.org/projects/webtest/\u003e`_ with  `ASGI \u003chttps://asgi.readthedocs.io/\u003e`_ applications.\n\nDisclaimer\n==========\n\nYou should probably use Starlette's `TestClient \u003chttps://www.starlette.io/testclient/\u003e`_ \ninstead of this package for testing ASGI applications. \nThis package was created to test `webargs-starlette \u003chttps://github.com/sloria/webargs-starlette\u003e`_ using\nwebargs' ``CommonTestCase``, which uses WebTest to test common\nfunctionality across multiple web frameworks.\n\nInstallation\n============\n::\n\n    pip install webtest-asgi\n\n\nUsage\n=====\n\nYou can use webtest-asgi with any ASGI application. Here is example usage with `Starlette \u003chttps://github.com/encode/starlette\u003e`_.\n\n.. code-block:: python\n\n    from starlette.applications import Starlette\n    from starlette.responses import JSONResponse\n    from webtest_asgi import TestApp as WebTestApp\n\n    app = Starlette()\n\n\n    @app.route(\"/\")\n    async def homepage(request):\n        return JSONResponse({\"hello\": \"world\"})\n\n\n    @pytest.fixture()\n    def testapp():\n        return WebTestApp(app)\n\n\n    def test_get_homepage(testapp):\n        assert testapp.get(\"/\").json == {\"hello\": \"world\"}\n\n\nProject Links\n=============\n\n- PyPI: https://pypi.python.org/pypi/webtest-asgi\n- Issues: https://github.com/sloria/webtest-asgi/issues\n\nLicense\n=======\n\nMIT licensed. See the bundled `LICENSE \u003chttps://github.com/sloria/webtest-asgi/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-asgi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsloria%2Fwebtest-asgi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsloria%2Fwebtest-asgi/lists"}