Comment 5 for bug 1501665

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to requests-mock (master)

Reviewed: https://review.openstack.org/360189
Committed: https://git.openstack.org/cgit/openstack/requests-mock/commit/?id=b2026313e304e92312b0cbae3ff266626b068953
Submitter: Jenkins
Branch: master

commit b2026313e304e92312b0cbae3ff266626b068953
Author: Jamie Lennox <email address hidden>
Date: Thu Aug 25 12:49:39 2016 +1000

    Allow doing real_http per mock via the mocker

    If you set up requests_mock to catch all requests (which I would
    recommend) you sometimes get caught with things like file:// paths that
    should be allowed to reach the filesystem.

    To do this we should allow you to add a matcher that says a specific
    route can bypass the catch all and do a real request.

    This is a bit of a layer violation but I thought it was easy to start
    with, then realized why it wasn't.

    Change-Id: Ic2516f78413b88a489c8d6bd2bc39b8ebb5bf273
    Closes-Bug: #1501665