Simple http server for API mocking during automated testing
Project description
Simple http server for API mocking during automated testing
Example usage
Using requests library:
>>> import requests >>> from httpsrv import Server >>> server = Server(8080).start() >>> server.on('GET', '/').text('hello') >>> res = requests.get('http://localhost:8080') >>> assert res.text == 'hello'
Installation
pip install httpsrv
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.