www/py-requests-mock 1.12.1p2 OpenBSD
mock out responses from py-requests
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Last update
- Commit
3f059e808a- Categories
- www, lang/python
Description
requests-mock provides a building block to stub out the HTTP requests portions of your testing code.
The requests library has the concept of pluggable transport adapters. These adapters allow you to register your own handlers for different URIs or protocols.
The requests-mock library at its core is simply a transport adapter that can be preloaded with responses that are returned if certain URIs are requested. This is particularly useful in unit tests where you want to return known responses from HTTP requests without making actual calls.
As the requests library has very limited options for how to load and use adapters requests-mock also provides a number of ways to make sure the mock adapter is used. These are only loading mechanisms, they do not contain any logic and can be used as a reference to load the adapter in whatever ways works best for your project.
In the other systems
The newest version among them is 1.12.1, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| OpenBSD | www/py-requests-mock | 1.12.1p2 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | 2026-08-11 |
| FreeBSD | www/py-requests-mock | 1.12.1 newest | none known | - | [email protected] | - |
| DragonFly | www/py-requests-mock | 1.12.1 newest | none known | - | [email protected] | - |
| MidnightBSD | www/py-requests-mock | 1.11.0_1 | no data | - | [email protected] | - |
| HardenedBSD | www/py-requests-mock | 1.12.1 newest | no data | - | [email protected] | - |
| GhostBSD | www/py-requests-mock | 1.12.1 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg_add py3-requests-mock
From the ports tree:
cd /usr/ports/www/py-requests-mock && make install
Dependencies
Build dependencies 6
Run dependencies 2
No port depends on this one.