skip to navigation
skip to content

pymountebank 1.0.3

Mountebank wrapper for mocking HTTP APIs

Latest Version: 1.2.0

# Mountebank

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("/text", "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"  
File Type Py Version Uploaded on Size
pymountebank-1.0.3.tar.gz (md5) Source 2017-03-21 2KB