A simple request mocker that caches requests responses to files.
Installation
Install it with pip:
pip install rmoq
Usage
The example below will put the content of fixtures/example.com.txt into the body of the request and if it does not exist the content will be downloaded and stored in fixtures/example.com.txt.
@rmoq.activate()
def test_remote_call():
response = requests.get('http://example.com')
assert response.body == 'Example'
More advanced usage can be found in the documentation.
MIT © Rolf Erik Lekang
Metadata
Release files for rmoq 0.4.2
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 | |
|---|---|---|---|---|
| rmoq-0.4.2.tar.gz | 4.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rmoq-0.4.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / rmoq-0.4.2.tar.gz
| Download URL | rmoq-0.4.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1046aff691a8bf7951e80eb1b9c14d79ea15cae9502114a6526abf645da7a15f
|
|
BLAKE2b-256 checksum How to use checksums |
56563c4c9a2a89576119d5b4ffd501288962559ef6cc68080599f8156488b083
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.9
|
Release files / rmoq-0.4.2-py2.py3-none-any.whl
| Download URL | rmoq-0.4.2-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c199c9bb32fd3884585968d879f7e764508b475ec5911cb2e3e255cb1d58bf30
|
|
BLAKE2b-256 checksum How to use checksums |
a70e67dae383593ed1d30dbac9c9b76bc48ba209b30eeec18eb4c179ed048c9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.9
|
Security for rmoq 0.4.2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.