]> khamidou — GitHub mirrors - vcrpy.git/log
vcrpy.git
11 years agosphinx skeleton
Ivan Malison [Sun, 13 Sep 2015 18:26:55 +0000 (11:26 -0700)]
sphinx skeleton

11 years agoMerge pull request #192 from agriffis/insensitive-headers
Ivan 'Goat' Malison [Fri, 28 Aug 2015 21:47:45 +0000 (14:47 -0700)]
Merge pull request #192 from agriffis/insensitive-headers

Make request.headers always a CaseInsensitiveDict.

11 years agotest_boto cleanup
Ivan Malison [Fri, 28 Aug 2015 20:03:09 +0000 (13:03 -0700)]
test_boto cleanup

11 years agoFull image URL in README.rst
Aron Griffis [Fri, 28 Aug 2015 18:46:08 +0000 (14:46 -0400)]
Full image URL in README.rst

...so it shows properly on PyPI

11 years agoMerge pull request #198 from gwillem/patch-1
Aron Griffis [Fri, 28 Aug 2015 17:01:14 +0000 (13:01 -0400)]
Merge pull request #198 from gwillem/patch-1

Add instructions on using libyaml

11 years agoFix a bad merge in README.rst
Aron Griffis [Fri, 28 Aug 2015 16:57:05 +0000 (12:57 -0400)]
Fix a bad merge in README.rst

This change seems to have gotten lost in #200

11 years agoFix typo in release notes test_class_meta
Ivan Malison [Fri, 28 Aug 2015 16:20:54 +0000 (09:20 -0700)]
Fix typo in release notes

11 years agoMerge pull request #201 from agriffis/path-transformer-default
Aron Griffis [Fri, 28 Aug 2015 11:55:13 +0000 (07:55 -0400)]
Merge pull request #201 from agriffis/path-transformer-default

Default path_transformer=None. Fixes #199

11 years agoDefault path_transformer=None. Fixes #199
Aron Griffis [Fri, 28 Aug 2015 11:25:03 +0000 (07:25 -0400)]
Default path_transformer=None. Fixes #199

11 years agoMerge pull request #200 from kevin1024/test_class_meta
Ivan 'Goat' Malison [Fri, 28 Aug 2015 10:19:54 +0000 (03:19 -0700)]
Merge pull request #200 from kevin1024/test_class_meta

Test class meta

11 years agoAutomatically decorate dynamically added methods with auto_decorate
Ivan Malison [Fri, 28 Aug 2015 09:03:50 +0000 (02:03 -0700)]
Automatically decorate dynamically added methods with auto_decorate

11 years agoChanged bash to sh and fix syntax
Willem de Groot [Fri, 28 Aug 2015 09:14:01 +0000 (11:14 +0200)]
Changed bash to sh and fix syntax

Online Github editting is not very convenient after all :)

11 years agoAdd bash code
Willem de Groot [Fri, 28 Aug 2015 09:11:03 +0000 (11:11 +0200)]
Add bash code

11 years agoAdd test_case method to VCR
Ivan Malison [Fri, 28 Aug 2015 08:40:35 +0000 (01:40 -0700)]
Add test_case method to VCR

this method provides a class that can be inherited from to decorate all
test methods on the desired class with use_cassette using the relevant vcr

11 years agoMove badges to top of README.
Ivan Malison [Wed, 26 Aug 2015 18:53:46 +0000 (11:53 -0700)]
Move badges to top of README.

11 years agoSpello on use_cassette, thanks @Diaoul
Aron Griffis [Thu, 27 Aug 2015 17:39:01 +0000 (13:39 -0400)]
Spello on use_cassette, thanks @Diaoul

11 years agoTypoe
Willem de Groot [Thu, 27 Aug 2015 09:20:11 +0000 (11:20 +0200)]
Typoe

11 years agoAdd instructions on using libyaml
Willem de Groot [Thu, 27 Aug 2015 09:19:31 +0000 (11:19 +0200)]
Add instructions on using libyaml

For a 10x speed increase!

11 years agoMove gitter chat with other badges
Aron Griffis [Wed, 26 Aug 2015 21:34:45 +0000 (17:34 -0400)]
Move gitter chat with other badges

11 years agoMerge pull request #197 from gitter-badger/gitter-badge
Ivan 'Goat' Malison [Wed, 26 Aug 2015 18:49:26 +0000 (11:49 -0700)]
Merge pull request #197 from gitter-badger/gitter-badge

Add a Gitter chat badge to README.rst

11 years agoAdded Gitter badge
The Gitter Badger [Wed, 26 Aug 2015 17:29:20 +0000 (17:29 +0000)]
Added Gitter badge

11 years agoAdd HeadersDict, and mark add_header deprecated.
Aron Griffis [Tue, 25 Aug 2015 02:14:38 +0000 (22:14 -0400)]
Add HeadersDict, and mark add_header deprecated.

HeadersDict is a subclass of CaseInsensitiveDict with two new features:

  1. Preserve the case of the header key from the first time it was set.
     This means that later munging won't modify the key case. (You can
     force picking up the new case with `del` followed by setting.)

  2. If the value is a list or tuple, unpack it and store the first
     element. This is the same as how `Request.add_header()` used to work.

For backward compatibility this commit preserves `Request.add_header()` but
marks it deprecated.

11 years agoMerge pull request #194 from agriffis/travis-requests26
Ivan 'Goat' Malison [Mon, 24 Aug 2015 22:14:12 +0000 (15:14 -0700)]
Merge pull request #194 from agriffis/travis-requests26

Add requests-2.6.0 to travis

11 years agoMerge pull request #193 from agriffis/new-travis
Ivan 'Goat' Malison [Mon, 24 Aug 2015 22:13:59 +0000 (15:13 -0700)]
Merge pull request #193 from agriffis/new-travis

Container-based travis for faster tests

11 years agoAdd requests-2.6.0 to travis
Aron Griffis [Mon, 24 Aug 2015 20:48:54 +0000 (16:48 -0400)]
Add requests-2.6.0 to travis

This is tested already in tox, but seems to have been omitted accidentally
from the travis config.

11 years agoContainer-based travis for faster tests
Aron Griffis [Mon, 24 Aug 2015 20:28:29 +0000 (16:28 -0400)]
Container-based travis for faster tests

11 years agoMore compact expression with dict.get()
Aron Griffis [Mon, 24 Aug 2015 18:22:12 +0000 (14:22 -0400)]
More compact expression with dict.get()

11 years agoMake request.headers always a CaseInsensitiveDict.
Aron Griffis [Mon, 24 Aug 2015 16:58:34 +0000 (12:58 -0400)]
Make request.headers always a CaseInsensitiveDict.

Previously request.headers was a normal dict (albeit with the
request.add_header interface) which meant that some code paths would do
case-sensitive matching, for example remove_post_data_parameters which
tests for 'Content-Type'. This change allows all code paths to get the same
case-insensitive treatment.

Additionally request.headers becomes a property to enforce upgrading it to
a CaseInsensitiveDict even if assigned.

11 years agov1.7.3 v1.7.3
Ivan Malison [Mon, 24 Aug 2015 01:10:01 +0000 (18:10 -0700)]
v1.7.3

11 years agoMerge pull request #191 from agriffis/trivial-fixes
Ivan 'Goat' Malison [Sun, 23 Aug 2015 20:33:34 +0000 (13:33 -0700)]
Merge pull request #191 from agriffis/trivial-fixes

Trivial cleanups and one bugfix

11 years agoRepair a docstring
Aron Griffis [Sun, 23 Aug 2015 15:45:10 +0000 (11:45 -0400)]
Repair a docstring

11 years agoMake hosts_to_ignore a set() earlier for clarity.
Aron Griffis [Sun, 23 Aug 2015 14:29:02 +0000 (10:29 -0400)]
Make hosts_to_ignore a set() earlier for clarity.

11 years agoDon't drop passed-in before_record_response
Aron Griffis [Sun, 23 Aug 2015 14:25:23 +0000 (10:25 -0400)]
Don't drop passed-in before_record_response

This is an actual bugfix. If before_record_response is passed into VCR as
an iterable then it won't be included in filter_functions. This commit
repairs the logic to separate the tests (just as it's already done for
before_record_request).

Also use .extend() rather than looping on .append()

11 years agoRaise KeyError with message instead of print, just like in get_matchers below
Aron Griffis [Sun, 23 Aug 2015 14:23:50 +0000 (10:23 -0400)]
Raise KeyError with message instead of print, just like in get_matchers below

11 years agoself._before_record_response can never be falsy in Cassette (just like self._before_r...
Aron Griffis [Sun, 23 Aug 2015 14:23:21 +0000 (10:23 -0400)]
self._before_record_response can never be falsy in Cassette (just like self._before_record_request above it)

11 years agoRemove an extra space
Aron Griffis [Sun, 23 Aug 2015 14:22:09 +0000 (10:22 -0400)]
Remove an extra space

11 years agostyle changes in test_vcr.py
Ivan Malison [Sun, 23 Aug 2015 01:58:29 +0000 (18:58 -0700)]
style changes in test_vcr.py

11 years agoadditional_matchers test
Ivan Malison [Sun, 23 Aug 2015 01:56:58 +0000 (18:56 -0700)]
additional_matchers test

11 years agoStyle changes in vcr/config.py
Ivan Malison [Sun, 23 Aug 2015 01:48:04 +0000 (18:48 -0700)]
Style changes in vcr/config.py

11 years agoAdd additional_matchers to use_cassette
Ivan Malison [Sun, 23 Aug 2015 01:06:13 +0000 (18:06 -0700)]
Add additional_matchers to use_cassette

Closes #188.

11 years agov1.7.2 v1.7.2
Ivan Malison [Tue, 18 Aug 2015 23:26:51 +0000 (16:26 -0700)]
v1.7.2

11 years agoUpdate comment about reentrance on cassette.py
Ivan Malison [Tue, 18 Aug 2015 23:16:49 +0000 (16:16 -0700)]
Update comment about reentrance on cassette.py

11 years agoMerge pull request #187 from abhinav/master
Ivan 'Goat' Malison [Tue, 18 Aug 2015 23:10:42 +0000 (16:10 -0700)]
Merge pull request #187 from abhinav/master

Set request_time on Tornadoo HTTPResponses

11 years agoSet request_time on Tornadoo HTTPResponses
Abhinav Gupta [Tue, 18 Aug 2015 22:51:46 +0000 (15:51 -0700)]
Set request_time on Tornadoo HTTPResponses

11 years agoMerge pull request #186 from ByteInternet/capture-effective-url
Ivan 'Goat' Malison [Tue, 18 Aug 2015 08:55:24 +0000 (01:55 -0700)]
Merge pull request #186 from ByteInternet/capture-effective-url

Capture effective url in Tornado

11 years agoAdd test for urllib2
Maarten van Schaik [Fri, 14 Aug 2015 10:42:17 +0000 (12:42 +0200)]
Add test for urllib2

11 years agoAdd effective url test for httplib2
Maarten van Schaik [Fri, 14 Aug 2015 10:37:34 +0000 (12:37 +0200)]
Add effective url test for httplib2

11 years agoVerify effective_url is ok
Maarten van Schaik [Fri, 14 Aug 2015 10:29:50 +0000 (12:29 +0200)]
Verify effective_url is ok

11 years agoRequests actually stores redirected request
Maarten van Schaik [Fri, 14 Aug 2015 10:28:41 +0000 (12:28 +0200)]
Requests actually stores redirected request

11 years agoCapture effective URL in tornado
Maarten van Schaik [Fri, 14 Aug 2015 10:08:57 +0000 (12:08 +0200)]
Capture effective URL in tornado

11 years ago1.7.1 v1.7.1
Ivan Malison [Wed, 12 Aug 2015 19:20:28 +0000 (12:20 -0700)]
1.7.1

11 years agoMerge pull request #184 from abhinav/master
Kevin McCarthy [Wed, 12 Aug 2015 19:16:22 +0000 (09:16 -1000)]
Merge pull request #184 from abhinav/master

For Tornado AsyncHTTPClient, replace the methods instead of the class.

11 years agoFor Tornado AsyncHTTPClient, replace the methods instead of the class.
Abhinav Gupta [Wed, 12 Aug 2015 17:42:00 +0000 (10:42 -0700)]
For Tornado AsyncHTTPClient, replace the methods instead of the class.

This makes it so patching works even if the user has a reference to, or an
instance of the original unpatched AsyncHTTPClient class.

Fixes #183.

11 years agov1.7.0 v1.7.0
Ivan Malison [Sun, 2 Aug 2015 20:36:57 +0000 (13:36 -0700)]
v1.7.0

11 years agoMerge pull request #181 from coagulant/fix-readme-custom-response
Ivan 'Goat' Malison [Sat, 1 Aug 2015 13:06:34 +0000 (06:06 -0700)]
Merge pull request #181 from coagulant/fix-readme-custom-response

Fix example for custom response filtering in docs

11 years agoFix example for custom response filtering in docs
Ilya Baryshev [Sat, 1 Aug 2015 08:10:51 +0000 (11:10 +0300)]
Fix example for custom response filtering in docs

11 years agofix generator test.
Ivan Malison [Thu, 30 Jul 2015 21:22:09 +0000 (14:22 -0700)]
fix generator test.

11 years agoMerge pull request #180 from abhinav/master
Ivan 'Goat' Malison [Thu, 30 Jul 2015 21:21:44 +0000 (14:21 -0700)]
Merge pull request #180 from abhinav/master

Fix exception catching in coroutines.

11 years agoFix exception catching in coroutines.
Abhinav Gupta [Thu, 30 Jul 2015 17:35:01 +0000 (10:35 -0700)]
Fix exception catching in coroutines.

11 years agoFix tornado python3 tests.
Ivan Malison [Thu, 30 Jul 2015 11:19:17 +0000 (04:19 -0700)]
Fix tornado python3 tests.

11 years agoFix all the tests in python 3
Ivan Malison [Thu, 30 Jul 2015 10:39:04 +0000 (03:39 -0700)]
Fix all the tests in python 3

11 years agoFix all the failing tests
Ivan Malison [Thu, 30 Jul 2015 09:08:42 +0000 (02:08 -0700)]
Fix all the failing tests

11 years agoMake cassette active for duration of coroutine/generator
Ivan Malison [Thu, 30 Jul 2015 08:47:29 +0000 (01:47 -0700)]
Make cassette active for duration of coroutine/generator

Closes #177.

11 years agoMerge pull request #179 from graingert/support-ancient-PyPA-tools
Ivan 'Goat' Malison [Thu, 30 Jul 2015 06:22:16 +0000 (23:22 -0700)]
Merge pull request #179 from graingert/support-ancient-PyPA-tools

Support distribute, Fixes #178

11 years agoSupport distribute, Fixes #178
Thomas Grainger [Wed, 29 Jul 2015 20:32:52 +0000 (21:32 +0100)]
Support distribute, Fixes #178

11 years agoMerge pull request #176 from charlax/patch-1
Ivan 'Goat' Malison [Mon, 27 Jul 2015 17:37:42 +0000 (10:37 -0700)]
Merge pull request #176 from charlax/patch-1

Make setup example pep8 compliant

11 years agoMake setup example pep8 compliant
Charles-Axel Dein [Mon, 27 Jul 2015 16:22:51 +0000 (18:22 +0200)]
Make setup example pep8 compliant

Pretty minor doc change.

11 years agoMerge pull request #175 from gward/issue163-v2
Ivan 'Goat' Malison [Sun, 26 Jul 2015 09:40:27 +0000 (02:40 -0700)]
Merge pull request #175 from gward/issue163-v2

Fix for #163, take 2.

11 years agoAdd several more test cases for issue #163.
Greg Ward [Thu, 16 Jul 2015 18:49:48 +0000 (14:49 -0400)]
Add several more test cases for issue #163.

11 years agoEnsure that request bodies are always bytes, not text (fixes #163).
Greg Ward [Thu, 16 Jul 2015 18:36:26 +0000 (14:36 -0400)]
Ensure that request bodies are always bytes, not text (fixes #163).

It shouldn't matter whether the request body comes from a file or a
string, or whether it is passed to the Request constructor or assigned
later. It should always be stored internally as bytes.

11 years agoMerge pull request #173 from graingert/patch-2
Kevin McCarthy [Thu, 16 Jul 2015 17:28:25 +0000 (07:28 -1000)]
Merge pull request #173 from graingert/patch-2

Fix before_record_reponse doc

11 years agoFix before_record_reponse doc
Thomas Grainger [Thu, 16 Jul 2015 14:13:19 +0000 (15:13 +0100)]
Fix before_record_reponse doc

11 years agoMerge pull request #172 from abhinav/patch-1
Kevin McCarthy [Wed, 15 Jul 2015 20:31:51 +0000 (10:31 -1000)]
Merge pull request #172 from abhinav/patch-1

Add Tornado to list of supported libraries

11 years agoAdd Tornado to list of supported libraries
Abhinav Gupta [Wed, 15 Jul 2015 19:43:36 +0000 (12:43 -0700)]
Add Tornado to list of supported libraries

11 years agov1.6.1 v1.6.1
Ivan Malison [Wed, 15 Jul 2015 07:25:56 +0000 (00:25 -0700)]
v1.6.1

11 years agoMerge remote-tracking branch 'upstream/master' into improved_body_matcher
Ivan Malison [Wed, 15 Jul 2015 07:10:37 +0000 (00:10 -0700)]
Merge remote-tracking branch 'upstream/master' into improved_body_matcher

11 years agoUpdate unit tests for body matcher. Simplified logic.
Ivan Malison [Wed, 15 Jul 2015 03:50:09 +0000 (20:50 -0700)]
Update unit tests for body matcher. Simplified logic.

11 years agoAdd a read_body helper function
Diaoul [Tue, 14 Jul 2015 23:16:10 +0000 (01:16 +0200)]
Add a read_body helper function

11 years agoAdd body matcher unit tests
Diaoul [Sat, 11 Jul 2015 21:19:09 +0000 (23:19 +0200)]
Add body matcher unit tests

11 years agoUse CaseInsensitiveDict in body matcher
Diaoul [Sat, 11 Jul 2015 21:18:45 +0000 (23:18 +0200)]
Use CaseInsensitiveDict in body matcher

11 years agoMerge pull request #170 from graingert/manual-conditional-requirements-for-old-pip
Ivan 'Goat' Malison [Tue, 7 Jul 2015 23:09:46 +0000 (16:09 -0700)]
Merge pull request #170 from graingert/manual-conditional-requirements-for-old-pip

Support conditional requirements in old versions of pip

11 years agoSupport conditional requirements in old versions of pip
Thomas Grainger [Tue, 7 Jul 2015 10:28:49 +0000 (11:28 +0100)]
Support conditional requirements in old versions of pip

11 years agoMerge pull request #168 from graingert/patch-1
Ivan 'Goat' Malison [Sun, 5 Jul 2015 19:43:43 +0000 (12:43 -0700)]
Merge pull request #168 from graingert/patch-1

Fix RST parse errors generated by pandoc

11 years agoFix RST parse errors generated by pandoc
Thomas Grainger [Sun, 5 Jul 2015 11:14:01 +0000 (12:14 +0100)]
Fix RST parse errors generated by pandoc

11 years agoUse Content-Type based approach for body matcher
Diaoul [Sat, 4 Jul 2015 16:57:37 +0000 (18:57 +0200)]
Use Content-Type based approach for body matcher

When converting objects to body, dicts and sets order can change
resulting in a different but same body. This fixes the issue by
comparing the enclosed data in the body rather than the body itself
while still allowing raw body matching with the raw_body matcher.

11 years agoMerge pull request #165 from abhinav/master
Ivan 'Goat' Malison [Fri, 3 Jul 2015 23:04:49 +0000 (16:04 -0700)]
Merge pull request #165 from abhinav/master

[Tornado] Fix unsupported features exception not being raised.

11 years ago[Tornado] Fix unsupported features exception not being raised.
Abhinav Gupta [Fri, 3 Jul 2015 19:32:07 +0000 (12:32 -0700)]
[Tornado] Fix unsupported features exception not being raised.

Add tests for that exception being raisd correctly and for
CannotOverwriteCassetteException.

11 years agoREADME spacing fix.
Ivan Malison [Fri, 3 Jul 2015 17:26:52 +0000 (10:26 -0700)]
README spacing fix.

11 years agov1.6.0 v1.6.0
Ivan Malison [Fri, 3 Jul 2015 17:17:44 +0000 (10:17 -0700)]
v1.6.0

11 years agoMerge pull request #164 from abhinav/tornado
Ivan 'Goat' Malison [Fri, 3 Jul 2015 17:01:20 +0000 (10:01 -0700)]
Merge pull request #164 from abhinav/tornado

Tornado support

11 years agoDon't install pycurl if pypy is being used.
Abhinav Gupta [Thu, 2 Jul 2015 23:17:34 +0000 (16:17 -0700)]
Don't install pycurl if pypy is being used.

Pycurl doesn't yet support pypy.

11 years agoTornado support
Abhinav Gupta [Thu, 2 Jul 2015 00:45:28 +0000 (17:45 -0700)]
Tornado support

11 years agoMerge pull request #162 from graingert/conditional-requirements
Ivan 'Goat' Malison [Thu, 2 Jul 2015 16:25:10 +0000 (09:25 -0700)]
Merge pull request #162 from graingert/conditional-requirements

use conditional requirements for backport libraries closes #147

11 years agouse conditional requirements for backport libraries Fixes #147
Thomas Grainger [Wed, 1 Jul 2015 08:51:32 +0000 (09:51 +0100)]
use conditional requirements for backport libraries Fixes #147

11 years agoMerge pull request #161 from graingert/packaging-fixes
Ivan 'Goat' Malison [Tue, 30 Jun 2015 19:02:38 +0000 (12:02 -0700)]
Merge pull request #161 from graingert/packaging-fixes

packaging fixes

11 years agopackaging fixes
Thomas Grainger [Tue, 30 Jun 2015 11:19:05 +0000 (12:19 +0100)]
packaging fixes

11 years agoMerge pull request #159 from MrJohz/master
Ivan 'Goat' Malison [Thu, 25 Jun 2015 05:04:12 +0000 (01:04 -0400)]
Merge pull request #159 from MrJohz/master

Fix issue #158

11 years agoUpdate test to ensure that filter is correctly applied
Jonathan [Wed, 24 Jun 2015 15:27:45 +0000 (16:27 +0100)]
Update test to ensure that filter is correctly applied

11 years agoAllow filtering post params in requests
Jonathan [Wed, 24 Jun 2015 15:23:00 +0000 (16:23 +0100)]
Allow filtering post params in requests

11 years agotest for xmlrpclib to make sure #140 is actually fixed.
Ivan Malison [Tue, 9 Jun 2015 08:13:58 +0000 (01:13 -0700)]
test for xmlrpclib to make sure #140 is actually fixed.