{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/15"}],"enrichment":{"capability":"Mocks urllib3 HTTP requests in tests by intercepting calls and returning predefined responses or callback-generated replies.","skillfed_tags":["http-mocking","legacy-package"],"use_cases":["Unit test code that makes HTTP calls without making actual network requests.","Mock specific API endpoints with fixed responses to test error handling and edge cases.","Use request callbacks to simulate dynamic server behavior based on request body.","Test code paths that depend on specific HTTP status codes or response headers."],"what_it_does":"urllib3-mock is a test utility that intercepts urllib3 HTTP calls and returns mock responses instead of making real network requests. It was adapted from the responses library and allows you to register predefined responses for specific URLs, or attach callbacks that generate responses dynamically based on request content. You can match URLs by exact string or compiled regex, set custom status codes and headers, or throw exceptions to simulate network failures.\n\nThe package is designed to work with urllib3 as bundled inside requests (requests.packages.urllib3). It has been abandoned since 2015; the latest release was 0.3.3 on 2015-04-16, and the repository has not been updated since 2023-01-17. It is only suitable for projects locked to very old versions of its target library.","worth_installing":"No. The package is abandoned (last release 2015-04-16, no commits since 2023-01-17) and designed for outdated bundled urllib3 in old requests versions. Modern projects should use alternative mocking libraries. Install only if you are maintaining legacy code locked to very old dependencies and cannot migrate."},"id":"urllib3-mock","links":{"html":"https://skillfed.io/packages/urllib3-mock","md":"https://skillfed.io/packages/urllib3-mock.md","pypi":"https://pypi.org/project/urllib3-mock/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2015-04-16","license_spdx":null,"license_treatment":"permissive","name":"urllib3-mock","python_support":"unspecified","summary":"A utility library for mocking out the `urllib3` Python library."},"popularity":{"monthly_downloads":150538,"position":10962,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.3"}
