Metadata-Version: 1.1
Name: Flask-httpretty
Version: 1.2.0
Summary: flask-httpretty help you to mock http requests via flask.
Home-page: http://github.com/admire93/flask-httpretty
Author: Hyojun Kang
Author-email: hyojun@admire.kr
License: BSD
Description: # Flask-httpretty
        
        [![Build Status](https://travis-ci.org/admire93/flask-httpretty.svg?branch=master)](https://travis-ci.org/admire93/flask-httpretty)
        
        Mock http request with flask!
        
        flask-httpretty is built based on [httpretty][hp].
        
        ## Hello world
        
            from flask import Flask
            from urllib.request import urlopen
        
            import flask_httpretty
        
        
            app = Flask(__name__)
        
            @app.route('/', methods=['GET'])
            def hello_world():
                return 'hello world'
        
        
            @flask_httpretty.activate
            def test_hello_world():
                flask_httpretty.register_app(app, 'http://hellotest.com')
                resp = urlopen('http://hellotest.com').read()
                assert 'hello world' == resp.decode('utf-8')
        
        ## Officially supported libraries
        
        Since flask-httpretty use [httpretty][hp] to monkey patches pythons'socket,
        it support same libraries [httpretty do][hp-support]. these are
        
          * [requests](http://docs.python-requests.org/en/latest/)
          * [httplib2](http://code.google.com/p/httplib2/)
          * [urllib](https://docs.python.org/3.4/library/urllib.request.html)
        
        [hp]: https://github.com/gabrielfalcao/HTTPretty
        [hp-support]: https://github.com/gabrielfalcao/HTTPretty#officially-supported-libraries
        
Platform: any
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
