{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"Provides sync and async test clients for testing Sanic web applications without requiring a running server.","skillfed_tags":["sanic-framework","http-testing","async-support"],"use_cases":["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"],"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.\n\nThe 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.","worth_installing":"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\u2014last release was 775 days ago\u2014so verify compatibility with your Sanic version before adopting. It is the intended successor to sanic.testing and remains the standard testing tool for Sanic."},"id":"sanic-testing","links":{"html":"https://skillfed.io/packages/sanic-testing","md":"https://skillfed.io/packages/sanic-testing.md","pypi":"https://pypi.org/project/sanic-testing/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-06-30","license_spdx":null,"license_treatment":"permissive","name":"sanic-testing","python_support":"unspecified","summary":"Core testing clients for Sanic"},"popularity":{"monthly_downloads":220767,"position":9292,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"24.6.0"}
