{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"Provides a test case class for writing unit tests of asyncio code using async/await syntax, alongside support for synchronous tests in the same suite.","skillfed_tags":["asyncio","testing","legacy-support"],"use_cases":["Testing async functions and coroutines in projects targeting Python 3.4\u20133.7 before IsolatedAsyncioTestCase was available","Writing mixed test suites with both synchronous and asynchronous test methods in a single class","Mocking async iterators and coroutines using the library's AsyncMockIterator and futurized utilities","Migrating legacy asyncio test code that predates Python 3.8's built-in async test support"],"what_it_does":"aiounittest is a test helper library that extends unittest.TestCase to support testing asyncio code using async/await syntax. It lets you write test methods as async functions and run them within an event loop, while still supporting synchronous tests in the same class. The library also provides utilities like AsyncMockIterator for mocking async iterators and futurized mocks for coroutines.\n\nThe package is designed to bridge the gap between unittest and asyncio, making it easier to test asynchronous code without boilerplate. However, for Python 3.8 and newer, the standard library now includes unittest.IsolatedAsyncioTestCase, which provides built-in asyncio support and may be preferable for new projects targeting recent Python versions.","worth_installing":"Yes, but with conditions. Install if you are maintaining code on Python 3.4\u20133.7 or need to test asyncio code in an existing unittest suite. For new projects targeting Python 3.8+, prefer the standard library's unittest.IsolatedAsyncioTestCase instead. The package is stable and permissively licensed, but aging maintenance means it may not receive updates for new Python features."},"id":"aiounittest","links":{"html":"https://skillfed.io/packages/aiounittest","md":"https://skillfed.io/packages/aiounittest.md","pypi":"https://pypi.org/project/aiounittest/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-03-07","license_spdx":null,"license_treatment":"permissive","name":"aiounittest","python_support":"unspecified","summary":"Test asyncio code more easily."},"popularity":{"monthly_downloads":300487,"position":7841,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.5.0"}
