{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/7"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"Provides pytest fixtures and utilities for managing temporary workspaces, running shell commands, and controlling environment variables in automated tests.","skillfed_tags":["pytest-plugin","shell-testing","subprocess-management"],"use_cases":["Test shell scripts or command-line tools by running them in isolated workspaces and capturing their output.","Verify code behavior under different environment variable configurations using set_env and unset_env context managers.","Run Python functions or modules as if they were entry points, useful for testing CLI entry points or subprocess isolation.","Manage temporary directories with automatic cleanup in test fixtures, avoiding manual tempfile boilerplate.","Execute subprocesses with coverage instrumentation to measure test coverage of spawned processes."],"what_it_does":"pytest-shutil is a collection of pytest fixtures and helper functions designed to simplify testing of shell scripts, command-line tools, and code that interacts with the filesystem or environment. It centers on a workspace fixture\u2014a function-scoped temporary directory with convenience methods for running commands and managing files\u2014plus utilities for controlling environment variables, changing directories, managing umasks, and executing subprocesses with output capture and coverage integration.\n\nThe package wraps common Unix testing patterns into reusable pytest fixtures and context managers, reducing boilerplate in test suites that need to spawn processes, manipulate the environment, or work with temporary file hierarchies. It depends on pytest, six, execnet, termcolor, and importlib-metadata, and targets Python 3.6 and later.","worth_installing":"Yes, with conditions. The package is stable and permissively licensed, with low install friction and no known vulnerabilities. However, maintenance is aging\u2014the last release was 623 days ago\u2014so adopt it only if you need its specific pytest fixtures for shell and environment testing and can accept slower response to future pytest or Python version changes."},"id":"pytest-shutil","links":{"html":"https://skillfed.io/packages/pytest-shutil","md":"https://skillfed.io/packages/pytest-shutil.md","pypi":"https://pypi.org/project/pytest-shutil/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-11-29","license_spdx":null,"license_treatment":"permissive","name":"pytest-shutil","python_support":"supports_current","summary":"A goodie-bag of unix shell and environment tools for py.test"},"popularity":{"monthly_downloads":220856,"position":9291,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.8.1"}
