BSD Ports

devel/py-vcrpy 8.3.0 FreeBSD

Automatically mock HTTP interactions to simplify and speed up testing

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
a49ed87bf8
License
MIT
Categories
devel, www, python
Package size
99.8 KiB, 498.1 KiB installed

Description

VCR.py simplifies and speeds up tests that make HTTP requests. The first time you run code that is inside a VCR.py context manager or decorated function, VCR.py records all HTTP interactions that take place through the libraries it supports and serializes and writes them to a flat file (in yaml format by default). This flat file is called a cassette.

When the relevant piece of code is executed again, VCR.py will read the serialized requests and responses from the aforementioned cassette file, and intercept any HTTP requests that it recognizes from the original test run and return the responses that corresponded to those requests. This means that the requests will not actually result in HTTP traffic, which confers several benefits including:

* The ability to work offline * Completely deterministic tests * Increased test execution speed

In the other systems

SystemPortVersion
FreeBSDdevel/py-vcrpy8.3.0
NetBSDwww/py-vcrpy8.3.0
DragonFlydevel/py-vcrpy7.0.0_1
MidnightBSDdevel/py-vcrpy7.0.0_3
HardenedBSDdevel/py-vcrpy8.3.0
GhostBSDdevel/py-vcrpy8.3.0

Install

Binary package:

pkg install py312-vcrpy

From the ports tree:

cd /usr/ports/devel/py-vcrpy/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-vcrpy>0:devel/py-vcrpy

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest8.3.08.3.04.2.17.0.0_18.3.0
FreeBSD:14:quarterly8.3.08.3.0n/a7.0.0_18.3.0
FreeBSD:15:latest8.3.08.3.0n/a7.0.0_17.0.0_1
FreeBSD:15:quarterly8.3.08.3.0n/an/an/a
FreeBSD:16:latest8.3.08.3.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 2

Test 2

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 10

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
vcrpy-8.3.0.tar.gz9611746d64e77e8d95e5c76c7d9a94ff05d8b38b2ae4e1d4869eb0235024b6fcb5212
Master sites 1
  • PYPI

Commit history 2

DateCommitCreditsLog message
a49ed87bf8 Muhammad Moinur Rahman devel/py-vcrpy: Update version 8.2.1=>8.3.0
Changelog: https://github.com/kevin1024/vcrpy/releases/tag/v8.3.0
e3684db1d2 Muhammad Moinur Rahman devel/py-vcrpy: Update version 8.2.0=>8.2.1
Changelog: https://github.com/kevin1024/vcrpy/releases/tag/v8.2.1