{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"}],"enrichment":{"capability":"Provides pytest fixtures that make random number generation reproducible across test runs by seeding with deterministic values derived from test node IDs.","skillfed_tags":["reproducible-testing","pytest-plugin","random-seeding"],"use_cases":["Ensure machine learning model tests produce identical results across runs for CI/CD pipelines","Test numerical algorithms with reproducible random inputs while rotating seeds to catch fragile tests","Verify stochastic simulations behave consistently without hardcoding seed values in test code","Generate deterministic test data from random distributions without manual seed management"],"what_it_does":"pytest-rng is a pytest plugin that provides two fixtures\u2014`rng` and `seed`\u2014to make random number generation deterministic and reproducible in tests. The `rng` fixture returns a pre-seeded NumPy RandomState object, while the `seed` fixture provides an integer seed value. Both derive their seeds by hashing the test's node ID combined with an optional salt string, ensuring the same random sequence runs every time unless you explicitly change the salt to test robustness across different seeds.\n\nThe package depends on numpy and pytest. It was released once on August 8, 2019 and has not been updated since, making it a stable but unmaintained tool. It is most useful for test suites that need reproducible randomness\u2014such as machine learning or numerical computing tests\u2014where you want to verify that random variations don't mask real bugs, yet still want to change seeds periodically to catch seed-dependent failures.","worth_installing":"Yes, if your test suite targets Python 3.5\u20133.7 and pytest versions from around 2019. The low install friction and permissive license make adoption straightforward. However, if you need modern Python versions or recent pytest support, verify compatibility first or seek an actively maintained alternative, since this package is abandoned."},"id":"pytest-rng","links":{"html":"https://skillfed.io/packages/pytest-rng","md":"https://skillfed.io/packages/pytest-rng.md","pypi":"https://pypi.org/project/pytest-rng/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-08-08","license_spdx":null,"license_treatment":"permissive","name":"pytest-rng","python_support":"supports_current","summary":"Fixtures for seeding tests and making randomness reproducible"},"popularity":{"monthly_downloads":156336,"position":10786,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
