sanic-testing
Core testing clients for Sanic
Decision gist · record as of 2026-08-14
Yes, if you are testing Sanic applications. The package is stable (Beta, no known vulnerabilities) and has low install friction. However, note that maintenance is dormant—last release was 775 days ago—so verify compatibility with your Sanic version before adopting. It is the intended successor to sanic.testing and remains the standard testing tool for Sanic.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single runtime dependency (httpx).
- Maintenance is dormant—last release was 775 days ago—but the repository remains active and the package is marked Beta.
- Use with awareness that updates may be infrequent.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
last release 2024-06-30 (775 days) · last repo commit 2024-06-30 · 36 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 220,767 downloads/mo, #9,292 on PyPI
Alternatives
Verify before relying
pip install sanic-testing
from sanic import Sanic
from sanic_testing import TestManager
sanic_app = Sanic(__name__)
TestManager(sanic_app)
# Now use app.test_client or app.asgi_client in tests- Whether the package remains compatible with recent Sanic versions given the dormant maintenance status
- Whether pytest-asyncio is required as a runtime dependency or only for async test examples
What it is and what it does
sanic-testing is a standalone test utility package extracted from Sanic core, providing both synchronous and asynchronous HTTP test clients for Sanic applications. It attaches itself to a Sanic instance via TestManager and exposes test_client (for sync tests) and asgi_client (for async tests) that can execute application handlers without standing up a server or making actual network calls.
The package depends on httpx for HTTP functionality and is designed to maintain API compatibility with the original sanic.testing module. It supports Python 3.8 through 3.12 and is classified as Beta. The async client is particularly useful for testing async handlers directly without server overhead.
Use it for
- Write unit tests for Sanic route handlers using synchronous test_client to verify responses and status codes
- Test async Sanic handlers with asgi_client in pytest-asyncio to execute application logic in-process
- Migrate existing Sanic tests from the deprecated sanic.testing module to this standalone package
- Verify request/response behavior for Sanic middleware and error handlers without network calls
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are testing Sanic applications.
The package is stable (Beta, no known vulnerabilities) and has low install friction. However, note that maintenance is dormant—last release was 775 days ago—so verify compatibility with your Sanic version before adopting. It is the intended successor to sanic.testing and remains the standard testing tool for Sanic.
Install
sanic-testing on PyPI
Before you install
Low install friction with a single runtime dependency (httpx). Maintenance is dormant—last release was 775 days ago—but the repository remains active and the package is marked Beta. Use with awareness that updates may be infrequent.
License in practice
MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install sanic-testing
from sanic import Sanic
from sanic_testing import TestManager
sanic_app = Sanic(__name__)
TestManager(sanic_app)
# Now use app.test_client or app.asgi_client in tests
Verify before relying
- Whether the package remains compatible with recent Sanic versions given the dormant maintenance status
- Whether pytest-asyncio is required as a runtime dependency or only for async test examples
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagehttpx |
| Maintenance | Dormant 775 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 220,767 / month, #9,292 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: sanic_testing-24.6.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sanic testing client”
- sanic-testingProvides sync and async test clients for testing Sanic web…
- sanic-jwtSanic JWT adds JWT-based authentication and authorization to Sanic…
- sanic-extSanic Extensions adds OpenAPI documentation, request validation,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also sanic · aresponses · smithy-http · oidc-provider-mock · pytest-tornado · sanic-jwt · Sanic-Cors · async-asgi-testclient · sanic-ext · smithy-core