BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
OpenBSDwww/py-requests-mock1.12.1p2 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-08-11
FreeBSDwww/py-requests-mock1.12.1 newestnone known-[email protected]-
DragonFlywww/py-requests-mock1.12.1 newestnone known-[email protected]-
MidnightBSDwww/py-requests-mock1.11.0_1no data-[email protected]-
HardenedBSDwww/py-requests-mock1.12.1 newestno data-[email protected]-
GhostBSDwww/py-requests-mock1.12.1 newestno data-[email protected]-

Compare across BSDs

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.

Commit history 1

DateCommitCreditsLog message
3f059e808a sthen drop @pkgpath/@conflict markers previously used for updates from 7.0/7.1