{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"Provides a context-manager syntax for temporarily replacing function behavior with stub implementations that match specified conditions, reverting after the block exits.","skillfed_tags":["abandoned","legacy-testing"],"use_cases":["Isolate a function's behavior in unit tests by returning fixed values when specific argument patterns match","Test code paths that depend on a function's return value without modifying the function itself","Verify that your code handles different function outputs correctly by stubbing responses for different input conditions","Temporarily replace functions during test runs without setting up a full mocking framework"],"what_it_does":"stubs is a lightweight testing utility that lets you temporarily replace a function's behavior using a context manager and matcher expressions. You define conditions (like `_ >= 3`) and specify what the function should return when those conditions are met, then wrap your test code in a `with` block that automatically reverts the stub when done.\n\nThe package was designed for Python 3.4 and Python 3.5 and has not been maintained since its initial release in 2016-10-31. It has no external runtime dependencies, making installation trivial, but its age means you should verify compatibility with your current Python version before relying on it.","worth_installing":"No. While the package is permissively licensed and has zero dependencies, it has been abandoned for over 3574 days with no updates since 2016-10-31. Unless you are maintaining legacy code that already uses stubs, you should choose a currently maintained alternative for new projects."},"id":"stubs","links":{"html":"https://skillfed.io/packages/stubs","md":"https://skillfed.io/packages/stubs.md","pypi":"https://pypi.org/project/stubs/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2016-10-31","license_spdx":null,"license_treatment":"permissive","name":"stubs","python_support":"unspecified","summary":"Tools for setting up stubs and mocks."},"popularity":{"monthly_downloads":92504,"position":13448,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
