KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
mountebank-python
★ 12
Open GitHub ↗
Mountebank Python Client
Download README (.md)
Explore Similar Repositories
lx_kitchen
:
Test Kitchen for LX Zones
elasticbeanstalk-worker-simulator
:
Run an Elastic Beanstalk worker application locally
JS_Packer
:
pack JavaScript into a self-extracting PNG
SkypeExportSwift
:
A small tool that exports historical skype user data form its local database.
audio-ruby
:
Cross-platform Audio Device Interface for Ruby
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
mountebank-python
?
Download (.md)
# Mountebank-Python Simple bindings to make [Mountebank](http://www.mbtest.org) easier to use from Python Mountebank is a tool which makes it easier to write tests for [Microservice](http://martinfowler.com/articles/microservices.html) architectures by spawning processes which imitate servers (ie. listening to ports locally and responding to HTTP requests). ## Installation `npm install -g mountebank --production` `pip install mountebank-python` ## Usage An "imposter" is a process which listens on a port (pretending to be a server) An imposter has multiple "stubs" A stub has a list of "predicates" and "responses" Predicates define if a stub matches and incoming HTTP request When a stub matches it responds with the next response in it's responses list Run `mb` to start mountebank In python: 1. Define your imposters (example given in mountebank.py) 2. Initialize a microservice object 3. Make requests to it Example usage in mountebank.py