Skip to main content

A simple request-mocker that will download

Project description

A simple request mocker that caches requests responses to files.


Install it with pip:

pip install rmoq


The example below will put the content of fixtures/ into the body of the request and if it does not exist the content will be downloaded and stored in fixtures/

def test_remote_call():
    response = requests.get('')
    assert response.body == 'Example'

More advanced usage can be found in the documentation.

MIT © Rolf Erik Lekang

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rmoq, version 0.4.2
Filename, size File type Python version Upload date Hashes
Filename, size rmoq-0.4.2-py2.py3-none-any.whl (6.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size rmoq-0.4.2.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page