{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"A pytest plugin that loads test variables from JSON, YAML, TOML, or Human JSON files specified on the command line and makes them available to tests as a dictionary.","skillfed_tags":["test-configuration","pytest-plugin","data-driven-testing"],"use_cases":["Load browser and OS capabilities for cross-browser Selenium tests from separate JSON files.","Inject API endpoints, credentials, or feature flags into integration tests via YAML configuration.","Parameterize test data (hostnames, ports, timeouts) without modifying test code.","Merge environment-specific variables (dev, staging, prod) from multiple TOML files.","Share test configuration across a team via version-controlled variable files."],"what_it_does":"pytest-variables is a pytest plugin that externalizes test configuration by loading variables from files into tests as a dictionary. Instead of hardcoding test data or environment values, you specify one or more JSON, YAML, TOML, or Human JSON files via the --variables command-line flag, and the plugin merges them and injects the result into any test that requests the variables fixture. Multiple files are merged in order, with later values overriding earlier ones for non-dictionary keys.\n\nThe plugin is useful for test suites that need to run against different configurations\u2014different browsers, operating systems, API endpoints, or credentials\u2014without modifying test code. It supports optional formats (YAML, TOML, Human JSON) via extras, allowing you to choose the file format that best suits your team's workflow. It has a single runtime dependency (pytest) and is actively maintained with support for current Python versions.","worth_installing":"Yes. It is a stable, actively maintained plugin with low install friction and no security vulnerabilities. The copyleft license is standard for pytest plugins and poses no barrier for most test suites. Install it if your tests need to consume external configuration files or if you want to separate test data from test code."},"id":"pytest-variables","links":{"html":"https://skillfed.io/packages/pytest-variables","md":"https://skillfed.io/packages/pytest-variables.md","pypi":"https://pypi.org/project/pytest-variables/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-02-01","license_spdx":null,"license_treatment":"copyleft","name":"pytest-variables","python_support":"supports_current","summary":"pytest plugin for providing variables to tests/fixtures"},"popularity":{"monthly_downloads":660940,"position":5455,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.1.0"}
