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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-vcrpy | 8.3.0 |
| NetBSD | www/py-vcrpy | 8.3.0 |
| DragonFly | devel/py-vcrpy | 7.0.0_1 |
| MidnightBSD | devel/py-vcrpy | 7.0.0_3 |
| HardenedBSD | devel/py-vcrpy | 8.3.0 |
| GhostBSD | devel/py-vcrpy | 8.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 8.3.0 | 8.3.0 | 4.2.1 | 7.0.0_1 | 8.3.0 |
| FreeBSD:14:quarterly | 8.3.0 | 8.3.0 | n/a | 7.0.0_1 | 8.3.0 |
| FreeBSD:15:latest | 8.3.0 | 8.3.0 | n/a | 7.0.0_1 | 7.0.0_1 |
| FreeBSD:15:quarterly | 8.3.0 | 8.3.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 8.3.0 | 8.3.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}wheel>0: devel/py-wheel
Runtime 2
${PYTHON_PKGNAMEPREFIX}wrapt>0: devel/py-wrapt${PYTHON_PKGNAMEPREFIX}pyyaml>=0: devel/py-pyyaml
Test 2
${PYTHON_PKGNAMEPREFIX}pytest>0: devel/py-pytest${PYTHON_PKGNAMEPREFIX}pytest-httpbin>=0: devel/py-pytest-httpbin
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
| File | Size | SHA256 |
|---|---|---|
| vcrpy-8.3.0.tar.gz | 96117 | 46d64e77e8d95e5c76c7d9a94ff05d8b38b2ae4e1d4869eb0235024b6fcb5212 |
Master sites 1
- PYPI