View Bazaar branches
Get this repository:
git clone https://git.launchpad.net/requests-mock

See all merge proposals.

Import details

Import Status: Reviewed

This repository is an import of the Git repository at https://github.com/jamielennox/requests-mock.git.

The next import is scheduled to run .

Last successful import was .

Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 25 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-5 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 30 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 15 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-4 and finished taking 30 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-1 and finished taking 20 seconds — see the log
Import started on juju-98ee42-prod-launchpad-codeimport-0 and finished taking 15 seconds — see the log

Branches

Name Last Modified Last Commit
master 2024-04-18 15:05:37 UTC
Type hint for _RequestHistoryTracker.reset method

Author: Leon Helwerda
Author Date: 2024-04-12 10:42:15 UTC

Type hint for _RequestHistoryTracker.reset method

jdufresne-bytes 2024-01-21 13:56:37 UTC
Remove unnecessary compatibility shims

Author: Jon Dufresne
Author Date: 2018-09-17 01:56:38 UTC

Remove unnecessary compatibility shims

The type bytes is available on all supported Pythons. On Python 2.7, it
is an alias for str, same as six.binary_type.

Likewise, io.BytesIO is available on all supported Pythons. It is always
a stream implementation using an in-memory bytes buffer.

Byte literals and Unicode literals are available on all supported
Pythons.

Makes the code more forward compatible with Python 3.

raise-no-address 2019-05-21 12:37:23 UTC
Give people a way of asking to return NoMockAddress

Author: Jamie Lennox
Author Date: 2019-05-21 12:37:23 UTC

Give people a way of asking to return NoMockAddress

NoMockAddress needs to be called with the request in it. If for whatever
reason a user wanted to emulate that they couldn't easily so we can
provide a reasonably easy work around.

pytest-case-sensitive 2018-11-24 23:16:30 UTC
Make pytest support the global case_sensitive value

Author: Jamie Lennox
Author Date: 2018-11-24 22:14:19 UTC

Make pytest support the global case_sensitive value

Pytest would read requests_mock_case_sensitive from pytest.ini but
default back to False if not found. We should determine if this value is
actually unset, and if so fall back to the global value.

Closes: #75

review/jamie_lennox/bug/1616751 2018-02-27 02:58:47 UTC
Drain iterators passed to request

Author: Jamie Lennox
Author Date: 2016-08-25 07:39:59 UTC

Drain iterators passed to request

Iterate over any iterators passed to the request. This will have been
done by the request process and will handle a very small corner case
where an application expects a generator to be run.

Closes-Bug: #1616751
Change-Id: I1bd439cc722740c10391eee3d5a928a60abec1f5

review/jamie_lennox/response.send 2016-11-18 05:18:00 UTC
Reset requests before calling callbacks

Author: Jamie Lennox
Author Date: 2016-11-18 04:33:55 UTC

Reset requests before calling callbacks

When a callback is invoked that calls requests the previous called mock
is run. When this is supposed to be a real_http request the
NoMockAddress is thrown but it can't be handled in the adapter and so
goes back to the outer send function.

This is all a problem and for a really unusual case because almost
surely if you are doing a requests call within a requests-mock callback
you're trying to do a real requests call. There's no point having a
callback that would simply point to something else you registered in the
same adapter.

So let's just assume that and reset all mocking whilst the callback code
may be run.

Change-Id: I9a426c54af778fcd536925744e78843854320a07

review/jamie_lennox/bug/1632584 2016-10-13 04:34:12 UTC
Request multipart form helper

Author: Jamie Lennox
Author Date: 2016-10-13 03:53:24 UTC

Request multipart form helper

Similarly to how we provide a form() helper on requests provide a
multipart_form that decodes multipart forms into a similar style to
query string or form parameters.

Closes-Bug: #1632584
Change-Id: Ieeb448e06d01736b2c7ec81406e170c629ecc733

review/jamie_lennox/version 2016-05-09 04:42:14 UTC
Add a version string to the __init__

Author: Jamie Lennox
Author Date: 2014-08-01 05:19:33 UTC

Add a version string to the __init__

Retrieve this from pbr and make it available to users.

Change-Id: I91d148c957d53319683449e0464af322f90d3d31

18 of 8 results

Other repositories

Name Last Modified
lp:requests-mock 2024-04-18
11 of 1 result
You can't create new repositories for requests-mock.