Simple http server for API mocking during automated testing
Project description
.. include:: docs/intro.rst
Httpsrv
=======
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
------------
To be done
.. _requests: http://docs.python-requests.org/en/master/
Documentation
-------------
http://httpsrv.readthedocs.org
Httpsrv
=======
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
------------
To be done
.. _requests: http://docs.python-requests.org/en/master/
Documentation
-------------
http://httpsrv.readthedocs.org
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.