Skip to main content

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

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 httpsrv, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size httpsrv-0.1.1-py3-none-any.whl (8.7 kB) File type Wheel Python version 3.4 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page