{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"Extends Python's unittest module with test utilities and mocks designed specifically for testing asyncio-based libraries, including coroutine mocks and event loop management.","skillfed_tags":["asyncio-testing","mock-utilities"],"use_cases":["Mock coroutine functions in unit tests without manually wrapping them or managing their return values.","Run async test methods and setUp/tearDown coroutines within a managed event loop per test.","Control event loop timing in tests via ClockedTestCase to run timed callbacks without waiting for wall-clock time.","Mock file and socket objects for testing selector-based I/O code without real network or filesystem calls.","Patch async functions and generators with custom behavior using asynctest's patch decorators."],"what_it_does":"asynctest is a testing library that builds on Python's standard unittest module to reduce boilerplate when writing tests for asyncio code. It provides CoroutineMock objects that properly mock coroutine functions, a TestCase subclass that automatically manages event loops for each test, and utilities to mock file and socket objects for selector-based testing. The library also includes helpers to control loop timing and run timed events without wall-clock delays.\n\nThe package is dormant\u2014its last release was in 2019 and it has received no commits since 2024-04-22. It supports Python 3.5 and later but currently targets the selector event loop model and does not support Windows' proactor. You should verify whether asynctest still adds value for your use case before adopting.","worth_installing":"Yes, if you are testing asyncio code on Python 3.5 or later and need selector-specific mocking utilities. No, if you need active maintenance and bug fixes\u2014the package is dormant and unlikely to receive updates. Verify that asynctest's feature set meets your needs before adopting."},"id":"asynctest","links":{"html":"https://skillfed.io/packages/asynctest","md":"https://skillfed.io/packages/asynctest.md","pypi":"https://pypi.org/project/asynctest/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2019-05-14","license_spdx":null,"license_treatment":"permissive","name":"asynctest","python_support":"supports_current","summary":"Enhance the standard unittest package with features for testing asyncio libraries"},"popularity":{"monthly_downloads":11182646,"position":1411,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.13.0"}
