{"id":34100283,"url":"https://github.com/endurantdevs/webtest-sanic","last_synced_at":"2026-05-27T18:02:44.632Z","repository":{"id":54880404,"uuid":"148922802","full_name":"EndurantDevs/webtest-sanic","owner":"EndurantDevs","description":"Integration of WebTest with Sanic applications","archived":false,"fork":false,"pushed_at":"2021-09-06T09:19:38.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T10:34:41.077Z","etag":null,"topics":["python","sanic","sanic-framework","webtest"],"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/EndurantDevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-09-15T17:11:07.000Z","updated_at":"2021-09-06T09:19:41.000Z","dependencies_parsed_at":"2022-08-14T05:31:17.113Z","dependency_job_id":null,"html_url":"https://github.com/EndurantDevs/webtest-sanic","commit_stats":null,"previous_names":["endurantdevs/webtest_sanic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EndurantDevs/webtest-sanic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndurantDevs%2Fwebtest-sanic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndurantDevs%2Fwebtest-sanic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndurantDevs%2Fwebtest-sanic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndurantDevs%2Fwebtest-sanic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EndurantDevs","download_url":"https://codeload.github.com/EndurantDevs/webtest-sanic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndurantDevs%2Fwebtest-sanic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33577636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":["python","sanic","sanic-framework","webtest"],"created_at":"2025-12-14T16:50:17.677Z","updated_at":"2026-05-27T18:02:44.628Z","avatar_url":"https://github.com/EndurantDevs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webtest-sanic\nIntegration of [WebTest](https://github.com/Pylons/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://app.travis-ci.com/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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendurantdevs%2Fwebtest-sanic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendurantdevs%2Fwebtest-sanic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendurantdevs%2Fwebtest-sanic/lists"}