{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"},{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking"}],"enrichment":{"capability":"A pytest plugin that enables testing of async code written with Trio, allowing you to write and run async test functions directly within pytest.","skillfed_tags":["async-testing","trio-integration"],"use_cases":["Write async unit tests for Trio-based libraries without manual event loop management.","Test concurrent I/O operations and async functions in isolation using pytest fixtures.","Run property-based tests on async code via Hypothesis integration.","Validate error handling and cancellation behavior in async Trio applications.","Integrate async testing into existing pytest test suites without restructuring."],"what_it_does":"pytest-trio is a pytest plugin that bridges the gap between pytest's synchronous test runner and Trio's async I/O library. It lets you write test functions as async coroutines and run them directly under pytest, handling the event loop setup and teardown automatically. The plugin depends on trio, outcome, and pytest.\n\nThe package is designed for projects already using Trio for concurrency and async I/O. Instead of writing wrapper functions or manually managing the event loop in tests, you mark async test functions with @pytest.mark.trio and pytest-trio runs them in a Trio context. It integrates with pytest's fixture system and supports Hypothesis for property-based testing of async code.","worth_installing":"Yes, if you are testing Trio-based code. The plugin is stable, well-integrated with pytest, and carries no security vulnerabilities. The aging maintenance (last release November 2022) is a minor concern but not a blocker\u2014the project remains unarchived and the core functionality is mature. Install it as a dev dependency for any project using Trio."},"id":"pytest-trio","links":{"html":"https://skillfed.io/packages/pytest-trio","md":"https://skillfed.io/packages/pytest-trio.md","pypi":"https://pypi.org/project/pytest-trio/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-11-01","license_spdx":null,"license_treatment":"permissive","name":"pytest-trio","python_support":"supports_current","summary":"Pytest plugin for trio"},"popularity":{"monthly_downloads":394538,"position":6990,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.0"}
