This is a simple wrapper library around mountebank. It’s useful for mocking HTTP API services.
Usage
from mountebank import Imposter
imposter = Imposter()
imposter.add_stub("/test", "GET", "What I'm expecting")
with imposter.mockhttp() as url:
assert requests.get(url + "/test").text == "What I'm expecting"
Development
To run the containers:
docker-compose up --build
To test:
docker-compose exec tests /bin/bash -c "cd /apps/mountebank/tests;pytest" docker-compose exec tests2 /bin/bash -c "cd /apps/mountebank/tests;pytest"
Metadata
Release files for pymountebank 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pymountebank-1.4.1.tar.gz | 5.0 kB | Without provenance | Details |
Release files / pymountebank-1.4.1.tar.gz
| Download URL | pymountebank-1.4.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a71a5b24ddbe3b50628733fa2d7cf6ee1bc7df2bec6fbd951f268f8c2b26ab5
|
|
BLAKE2b-256 checksum How to use checksums |
1077f90a3fe4937df87a2143ea2d412f348cd5e775b9c369480227727e16afd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pymountebank 1.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.