]> khamidou — GitHub mirrors - vcrpy.git/log
vcrpy.git
11 years agoAdd setter to body on vcr's request.
Ivan Malison [Tue, 24 Mar 2015 21:08:58 +0000 (14:08 -0700)]
Add setter to body on vcr's request.

11 years agoDon't use 2.7+ style ',' separated with.
Ivan Malison [Tue, 24 Mar 2015 21:08:31 +0000 (14:08 -0700)]
Don't use 2.7+ style ',' separated with.

11 years agoAdd support for posting files through requests. closes #121. Possibly #134.
Ivan Malison [Tue, 24 Mar 2015 20:27:23 +0000 (13:27 -0700)]
Add support for posting files through requests. closes #121. Possibly #134.

11 years agofix tox/urllib3 stuff.
Ivan Malison [Tue, 24 Mar 2015 21:10:14 +0000 (14:10 -0700)]
fix tox/urllib3 stuff.

11 years agoVersion 1.3.0. v1.3.0
Ivan Malison [Tue, 24 Mar 2015 01:10:26 +0000 (18:10 -0700)]
Version 1.3.0.

11 years agoclarifying comment in patch.py.
Ivan Malison [Tue, 24 Mar 2015 01:00:23 +0000 (18:00 -0700)]
clarifying comment in patch.py.

11 years agounused imports.
Ivan Malison [Tue, 24 Mar 2015 00:55:38 +0000 (17:55 -0700)]
unused imports.

11 years agoClarifying comments in patch.py.
Ivan Malison [Tue, 24 Mar 2015 00:54:06 +0000 (17:54 -0700)]
Clarifying comments in patch.py.

11 years agoUse suggested emacs style coding statements (see https://www.python.org/dev/peps...
Ivan Malison [Tue, 24 Mar 2015 00:53:39 +0000 (17:53 -0700)]
Use suggested emacs style coding statements (see https://www.python.org/dev/peps/pep-0263/).

11 years agoMerge pull request #138 from aisch/patch-and-test-urllib3
Ivan 'Goat' Malison [Tue, 24 Mar 2015 00:47:42 +0000 (17:47 -0700)]
Merge pull request #138 from aisch/patch-and-test-urllib3

update urllib3 patch/stub to be same as used for requests and add tests

11 years agorm unused imports
aisch [Mon, 23 Mar 2015 20:56:48 +0000 (13:56 -0700)]
rm unused imports

11 years agorename urllib3 patch method and rm unused imports from tests
aisch [Mon, 23 Mar 2015 20:43:30 +0000 (13:43 -0700)]
rename urllib3 patch method and rm unused imports from tests

11 years agoupdate urllib3 patch/stub to be same as used for requests and add tests
aisch [Mon, 23 Mar 2015 19:12:49 +0000 (12:12 -0700)]
update urllib3 patch/stub to be same as used for requests and add tests

11 years agoMerge pull request #136 from abhinav/https-port-fix
Kevin McCarthy [Tue, 24 Feb 2015 19:12:49 +0000 (09:12 -1000)]
Merge pull request #136 from abhinav/https-port-fix

Fix default port for HTTPS

11 years agoFix httplib2 integration test.
Abhinav Gupta [Tue, 24 Feb 2015 08:09:44 +0000 (00:09 -0800)]
Fix httplib2 integration test.

11 years agoFix default port for HTTPS.
Abhinav Gupta [Tue, 24 Feb 2015 07:37:04 +0000 (23:37 -0800)]
Fix default port for HTTPS.

11 years agoMerge pull request #135 from RomuloOliveira/patch-1
Ivan 'Goat' Malison [Wed, 28 Jan 2015 20:02:57 +0000 (12:02 -0800)]
Merge pull request #135 from RomuloOliveira/patch-1

Fix missing quotes on Custom Response Filtering

11 years agoFix missing quotes on Custom Response Filtering
Rômulo Oliveira [Wed, 28 Jan 2015 13:34:47 +0000 (11:34 -0200)]
Fix missing quotes on Custom Response Filtering

Missing quotes are bad

11 years agoAdd custom_patches section to README.md
Ivan Malison [Thu, 8 Jan 2015 22:00:33 +0000 (14:00 -0800)]
Add custom_patches section to README.md

11 years agoMerge pull request #133 from IvanMalison/custom_patches v1.2.0
Ivan 'Goat' Malison [Thu, 8 Jan 2015 19:08:55 +0000 (11:08 -0800)]
Merge pull request #133 from IvanMalison/custom_patches

Custom patches

11 years agoBump version to 1.2.0
Ivan Malison [Thu, 8 Jan 2015 18:56:39 +0000 (10:56 -0800)]
Bump version to 1.2.0

11 years agoAdd ability to add custom patches to vcr and cassettes.
Ivan Malison [Thu, 8 Jan 2015 18:53:44 +0000 (10:53 -0800)]
Add ability to add custom patches to vcr and cassettes.

11 years agoBump vesrsion to 1.1.4, add to release notes. v1.1.4
Ivan Malison [Fri, 26 Dec 2014 10:26:24 +0000 (05:26 -0500)]
Bump vesrsion to 1.1.4, add to release notes.

11 years agoAdd force reset around calls to actual connection from stubs, to ensure
Ivan Malison [Fri, 26 Dec 2014 10:07:02 +0000 (05:07 -0500)]
Add force reset around calls to actual connection from stubs, to ensure
compatibility with version of httplib/urlib2 in python 2.7.9. Closes #130.

11 years agoMerge pull request #128 from gazpachoking/patch-1
Kevin McCarthy [Tue, 9 Dec 2014 18:55:52 +0000 (08:55 -1000)]
Merge pull request #128 from gazpachoking/patch-1

Update changelog to note requests 2.5 support

11 years agoUpdate changelog to note requests 2.5 support
Chase Sterling [Tue, 9 Dec 2014 18:26:46 +0000 (13:26 -0500)]
Update changelog to note requests 2.5 support

11 years agoupdate release notes v1.1.3
Kevin McCarthy [Tue, 9 Dec 2014 03:08:41 +0000 (17:08 -1000)]
update release notes

11 years agoMerge pull request #127 from gazpachoking/1.1.3
Kevin McCarthy [Tue, 9 Dec 2014 03:09:07 +0000 (17:09 -1000)]
Merge pull request #127 from gazpachoking/1.1.3

Version bump to v1.1.3

11 years agoVersion bump to v1.1.3
Chase Sterling [Tue, 9 Dec 2014 02:43:01 +0000 (21:43 -0500)]
Version bump to v1.1.3

11 years agoMerge pull request #125 from gazpachoking/pool_is_none
Ivan 'Goat' Malison [Mon, 8 Dec 2014 21:20:36 +0000 (13:20 -0800)]
Merge pull request #125 from gazpachoking/pool_is_none

Fix crash with requests 2.5 where connectionpool was None

11 years agoMerge pull request #126 from gazpachoking/116
Ivan 'Goat' Malison [Mon, 8 Dec 2014 20:29:34 +0000 (12:29 -0800)]
Merge pull request #126 from gazpachoking/116

Play back requests requests on windows. fix #116

11 years agoAdd requests 2.5 to testing list in .travis.yml and tox.ini
Chase Sterling [Mon, 8 Dec 2014 19:40:55 +0000 (14:40 -0500)]
Add requests 2.5 to testing list in .travis.yml and tox.ini

11 years agoPlay back requests requests on windows. fix #116
Chase Sterling [Mon, 8 Dec 2014 19:28:48 +0000 (14:28 -0500)]
Play back requests requests on windows. fix #116

11 years agoFix crash with requests 2.5 where connectionpool was None
Chase Sterling [Sun, 7 Dec 2014 18:49:23 +0000 (13:49 -0500)]
Fix crash with requests 2.5 where connectionpool was None

12 years agoImprove test_new_episodes_record_mode_two_times test.
Ivan Malison [Sat, 22 Nov 2014 01:15:15 +0000 (17:15 -0800)]
Improve test_new_episodes_record_mode_two_times test.

12 years agoAdds a test to ensure that the cassette created with "new_episodes" has different...
Nithin Reddy [Fri, 21 Nov 2014 17:47:28 +0000 (09:47 -0800)]
Adds a test to ensure that the cassette created with "new_episodes" has different expected behavior when opened with "once".

12 years agoFixes #123. When attempting to replay the same request twice using record_mode="new_e...
Nithin Reddy [Fri, 21 Nov 2014 03:07:21 +0000 (19:07 -0800)]
Fixes #123. When attempting to replay the same request twice using record_mode="new_episodes", vcr.py raises UnhandledHTTPRequestError.

12 years agoRemove warning message caused by lack of is_verified property on HTTPSConnection...
Ivan Malison [Fri, 14 Nov 2014 00:32:33 +0000 (16:32 -0800)]
Remove warning message caused by lack of is_verified property on HTTPSConnection stub.

12 years agoMerge pull request #118 from rtaboada/fix-response-stub-headers-field
Ivan 'Goat' Malison [Mon, 3 Nov 2014 12:07:12 +0000 (04:07 -0800)]
Merge pull request #118 from rtaboada/fix-response-stub-headers-field

Create headers field in VCRHTTPResponse. Fixes #117.

12 years agoMerge pull request #119 from telaviv/make_boto_tests_pass_again
Ivan 'Goat' Malison [Fri, 31 Oct 2014 07:14:45 +0000 (00:14 -0700)]
Merge pull request #119 from telaviv/make_boto_tests_pass_again

test_boto_stubs passes again.

12 years agotest_boto_stubs passes again.
Shawn Krisman [Thu, 30 Oct 2014 23:08:17 +0000 (16:08 -0700)]
test_boto_stubs passes again.

12 years agoString in request body should be bytes.
Rodrigo Taboada [Fri, 24 Oct 2014 20:30:06 +0000 (18:30 -0200)]
String in request body should be bytes.

12 years agoTests for VCRHTTPResponse headers field.
Rodrigo Taboada [Fri, 24 Oct 2014 19:40:51 +0000 (17:40 -0200)]
Tests for VCRHTTPResponse headers field.

12 years agoCreate headers field in VCRHTTPResponse. Fixes #117.
Rodrigo Taboada [Fri, 24 Oct 2014 17:42:30 +0000 (15:42 -0200)]
Create headers field in VCRHTTPResponse. Fixes #117.

12 years agoversion bump to v1.1.2 v1.1.2
Ivan Malison [Wed, 8 Oct 2014 19:11:53 +0000 (12:11 -0700)]
version bump to v1.1.2

12 years agoActually use pytest.raises in test.
Ivan Malison [Tue, 7 Oct 2014 20:45:09 +0000 (13:45 -0700)]
Actually use pytest.raises in test.

12 years agoHandle unicode error in json serialize properly.
Ivan Malison [Tue, 7 Oct 2014 20:21:16 +0000 (13:21 -0700)]
Handle unicode error in json serialize properly.

12 years agoRandom tweaks.
Ivan Malison [Mon, 6 Oct 2014 01:37:01 +0000 (18:37 -0700)]
Random tweaks.

12 years agoRemove .travis.yml changes.
Ivan Malison [Sun, 5 Oct 2014 23:42:46 +0000 (16:42 -0700)]
Remove .travis.yml changes.

12 years agoRemove ipdb because it causes python below 2.6 to blow up.
Ivan Malison [Fri, 3 Oct 2014 01:41:05 +0000 (18:41 -0700)]
Remove ipdb because it causes python below 2.6 to blow up.

12 years agoFix pip install of tox in travis.
Ivan Malison [Thu, 2 Oct 2014 22:48:29 +0000 (15:48 -0700)]
Fix pip install of tox in travis.

12 years agotravis through tox.
Ivan Malison [Thu, 2 Oct 2014 22:26:22 +0000 (15:26 -0700)]
travis through tox.

12 years agoRefactor tox.ini using new 1.8 features.
Ivan Malison [Thu, 2 Oct 2014 21:57:53 +0000 (14:57 -0700)]
Refactor tox.ini using new 1.8 features.

12 years agobetter logging when matches aren't working.
Ivan Malison [Thu, 25 Sep 2014 11:49:00 +0000 (04:49 -0700)]
better logging when matches aren't working.

12 years agoBump version to 1.1.1 v1.1.1
Ivan Malison [Tue, 23 Sep 2014 02:22:52 +0000 (19:22 -0700)]
Bump version to 1.1.1

12 years agoRemove instance variables for filter_headers, filter_query_params, ignore_localhost...
Ivan Malison [Tue, 23 Sep 2014 00:57:22 +0000 (17:57 -0700)]
Remove instance variables for filter_headers, filter_query_params, ignore_localhost and ignore_hosts. These still exist on the VCR object, but they are automatically translated into a filter function when passed to the cassette.

12 years agoMerge pull request #110 from IvanMalison/use_cassette_decorator_pytest_compatibility
Ivan 'Goat' Malison [Tue, 23 Sep 2014 00:02:23 +0000 (17:02 -0700)]
Merge pull request #110 from IvanMalison/use_cassette_decorator_pytest_compatibility

Fix use_cassette decorator in python 2 by using wrapt.decorator

12 years agoFix use_cassette decorator in python 2 by using wrapt.decorator. Add wrapt as dependency.
Ivan Malison [Mon, 22 Sep 2014 23:40:09 +0000 (16:40 -0700)]
Fix use_cassette decorator in python 2 by using wrapt.decorator. Add wrapt as dependency.

12 years agoMerge pull request #108 from IvanMalison/fix_CassetteContextDecorator_nesting_issues v1.1.0
Ivan 'Goat' Malison [Sun, 21 Sep 2014 12:18:41 +0000 (05:18 -0700)]
Merge pull request #108 from IvanMalison/fix_CassetteContextDecorator_nesting_issues

Fix cassette context decorator nesting issues

12 years agoBump setup.py version to v1.1.0. minor tweaks to readme.
Ivan Malison [Sun, 21 Sep 2014 12:07:24 +0000 (05:07 -0700)]
Bump setup.py version to v1.1.0. minor tweaks to readme.

12 years agoFix last bit of of #109.
Ivan Malison [Sun, 21 Sep 2014 12:06:28 +0000 (05:06 -0700)]
Fix last bit of of #109.

12 years agoRevert "Remove ConnectionRemover class that tried to get rid of vcr connections in...
Ivan Malison [Sat, 20 Sep 2014 18:59:25 +0000 (11:59 -0700)]
Revert "Remove ConnectionRemover class that tried to get rid of vcr connections in ConnectionPools."

This reverts commit dc249b09656acb27651e04071592e276ecf4dca8.

Conflicts:
vcr/patch.py

12 years agoReturn a tuple from the _request function on CassettePatcherBuilder even if import...
Ivan Malison [Sat, 20 Sep 2014 18:28:59 +0000 (11:28 -0700)]
Return a tuple from the _request function on CassettePatcherBuilder even if import fails. Make _recursively_apply_get_cassette_subclass actually work with dictionaries.

12 years agoMake changes from b1cdd50e9b633060a801e9f8669de375fbe946c9 compatible with requests1...
Ivan Malison [Sat, 20 Sep 2014 17:55:03 +0000 (10:55 -0700)]
Make changes from b1cdd50e9b633060a801e9f8669de375fbe946c9 compatible with requests1.x; Update Readme.md with description of `before_record_response`

12 years agoRemove ConnectionRemover class that tried to get rid of vcr connections in Connection...
Ivan Malison [Sat, 20 Sep 2014 00:20:59 +0000 (17:20 -0700)]
Remove ConnectionRemover class that tried to get rid of vcr connections in ConnectionPools.

12 years agoMark bad test xfail.
Ivan Malison [Sat, 20 Sep 2014 00:10:19 +0000 (17:10 -0700)]
Mark bad test xfail.

12 years agoFix some of the issues from #109
Ivan Malison [Sat, 20 Sep 2014 00:06:53 +0000 (17:06 -0700)]
Fix some of the issues from #109

12 years agoRevert "Fixed issue in test_nested_context_managers_with_session_created_before_first...
Ivan Malison [Fri, 19 Sep 2014 21:32:21 +0000 (14:32 -0700)]
Revert "Fixed issue in test_nested_context_managers_with_session_created_before_first_nesting. by using a single class and patching cassette on that class. Not a great solution :\"

This reverts commit 2bf23b2cdf8542f5bf137e386f3bc278bbc2cc83.

12 years agoUse {[testenv]deps}, instead of repeating testing requirements. Write another failing...
Ivan Malison [Fri, 19 Sep 2014 21:31:49 +0000 (14:31 -0700)]
Use {[testenv]deps}, instead of repeating testing requirements. Write another failing test for #109

12 years agoAdd failing test for session still being attached to cassette after context is gone.
Ivan Malison [Fri, 19 Sep 2014 00:03:13 +0000 (17:03 -0700)]
Add failing test for session still being attached to cassette after context is gone.

12 years agoFixed issue in test_nested_context_managers_with_session_created_before_first_nesting...
Ivan Malison [Fri, 19 Sep 2014 00:01:48 +0000 (17:01 -0700)]
Fixed issue in test_nested_context_managers_with_session_created_before_first_nesting. by using a single class and patching cassette on that class. Not a great solution :\

12 years agoAdd test that fails because of the fact that a new class is used for each cassette...
Ivan Malison [Thu, 18 Sep 2014 23:17:48 +0000 (16:17 -0700)]
Add test that fails because of the fact that a new class is used for each cassette context instead of replacing the cassette on the existing mock connection.

12 years agoUse contextdecorator from contextlib2. add logging for entering context.
Ivan Malison [Thu, 18 Sep 2014 22:25:42 +0000 (15:25 -0700)]
Use contextdecorator from contextlib2. add logging for entering context.

12 years agoRefactor build_patchers into class. Fix issue with patching non existent attribute...
Ivan Malison [Thu, 18 Sep 2014 16:24:28 +0000 (09:24 -0700)]
Refactor build_patchers into class. Fix issue with patching non existent attribute with hasattr.

12 years agohasattr check for requests 2.0 use cassette added type for httplib2 dictionary patch.
Ivan Malison [Thu, 18 Sep 2014 15:02:50 +0000 (08:02 -0700)]
hasattr check for requests 2.0 use cassette added type for httplib2 dictionary patch.

12 years agoCheck for old style class when building subclass.
Ivan Malison [Thu, 18 Sep 2014 13:48:55 +0000 (06:48 -0700)]
Check for old style class when building subclass.

12 years agoPython version agnostic way of getting the next item in the generator.
Ivan Malison [Thu, 18 Sep 2014 12:59:03 +0000 (05:59 -0700)]
Python version agnostic way of getting the next item in the generator.

12 years agoUse mock for patching http connection objects.
Ivan Malison [Thu, 18 Sep 2014 12:32:55 +0000 (05:32 -0700)]
Use mock for patching http connection objects.

12 years agoFailing tests for nested context decoration.
Ivan Malison [Thu, 18 Sep 2014 10:46:39 +0000 (03:46 -0700)]
Failing tests for nested context decoration.

12 years agoChange use_cassette to pass a function to CassetteContextDecorator so that changes...
Ivan Malison [Thu, 18 Sep 2014 09:52:44 +0000 (02:52 -0700)]
Change use_cassette to pass a function to CassetteContextDecorator so that changes to the default settings on the vcr properly propogate.

12 years agouse_cassette -> CassetteContextDecorator
Ivan Malison [Thu, 18 Sep 2014 06:22:43 +0000 (23:22 -0700)]
use_cassette -> CassetteContextDecorator

12 years agoFix failure in test_local_host resulting from attempting to add tuple to list.
Ivan Malison [Thu, 18 Sep 2014 04:48:28 +0000 (21:48 -0700)]
Fix failure in test_local_host resulting from attempting to add tuple to list.

12 years agoRevert "Add global toggle to use_cassette."
Ivan Malison [Thu, 18 Sep 2014 04:42:25 +0000 (21:42 -0700)]
Revert "Add global toggle to use_cassette."

This reverts commit 366e2b75bbba851325e63499c9770ebcf8f3faf7.

Conflicts:
tests/unit/test_cassettes.py

12 years agoChange default paramters to VCR from lists to tuples.
Ivan Malison [Thu, 18 Sep 2014 02:29:02 +0000 (19:29 -0700)]
Change default paramters to VCR from lists to tuples.

12 years agoAdd before_record_response to Cassette and VCR.
Ivan Malison [Wed, 17 Sep 2014 11:10:05 +0000 (04:10 -0700)]
Add before_record_response to Cassette and VCR.

12 years agoAdd global toggle to use_cassette.
Ivan Malison [Wed, 17 Sep 2014 08:28:54 +0000 (01:28 -0700)]
Add global toggle to use_cassette.

12 years agoBump version number for new use_cassette_decorator.
Ivan Malison [Wed, 17 Sep 2014 06:53:50 +0000 (23:53 -0700)]
Bump version number for new use_cassette_decorator.

12 years agoAdd use_cassette class so functinos that are decorated with use_cassette can be calle...
Ivan Malison [Wed, 17 Sep 2014 06:32:28 +0000 (23:32 -0700)]
Add use_cassette class so functinos that are decorated with use_cassette can be called multiple times.

12 years agoMerge pull request #101 from IvanMalison/minor_cleanup
Kevin McCarthy [Tue, 16 Sep 2014 05:10:40 +0000 (19:10 -1000)]
Merge pull request #101 from IvanMalison/minor_cleanup

Clean up __init__.py .

12 years agoClean up __init__.py .
Ivan Malison [Tue, 16 Sep 2014 04:07:20 +0000 (21:07 -0700)]
Clean up __init__.py .

12 years agoMerge pull request #100 from IvanMalison/immutable_keyword_defaults
Kevin McCarthy [Sat, 13 Sep 2014 00:01:55 +0000 (14:01 -1000)]
Merge pull request #100 from IvanMalison/immutable_keyword_defaults

Make defaults of Cassette constructor immutable. Clean up whitespace. Re...

12 years agoMake defaults of Cassette constructor immutable. Clean up whitespace. Remove unused...
Ivan Malison [Fri, 12 Sep 2014 09:16:32 +0000 (02:16 -0700)]
Make defaults of Cassette constructor immutable. Clean up whitespace. Remove unused import.

12 years agoMerge pull request #97 from matt-thomson/multiple-headers
Kevin McCarthy [Sun, 7 Sep 2014 20:06:26 +0000 (10:06 -1000)]
Merge pull request #97 from matt-thomson/multiple-headers

Fix serialization/deserialization of multiple headers with the same value

12 years agoFix multiple header behaviour.
Matt Thomson [Sat, 6 Sep 2014 16:15:15 +0000 (17:15 +0100)]
Fix multiple header behaviour.

Join multiple header values together, rather than losing duplicates with a
dict.

12 years agoDon't write header values multiple times.
Matt Thomson [Sat, 6 Sep 2014 15:57:12 +0000 (16:57 +0100)]
Don't write header values multiple times.

On Python 3, response.msg.keys() contains the same value multiple times if
there are multiple headers with the same value.  Work around this by
converting to a set before iterating over it.

12 years agoAdd test to demonstrate Python 3 multiple headers bug.
Matt Thomson [Sat, 6 Sep 2014 15:32:29 +0000 (16:32 +0100)]
Add test to demonstrate Python 3 multiple headers bug.

12 years agobump version v1.0.3
Kevin McCarthy [Tue, 2 Sep 2014 01:50:25 +0000 (15:50 -1000)]
bump version

12 years agoFix requests stub. Closes #94
Kevin McCarthy [Tue, 2 Sep 2014 01:18:30 +0000 (15:18 -1000)]
Fix requests stub.  Closes #94

12 years agogetheader() in stubs should be case-insensitive
Kevin McCarthy [Sat, 2 Aug 2014 02:25:59 +0000 (16:25 -1000)]
getheader() in stubs should be case-insensitive

12 years agoMerge pull request #87 from hartsock/master
Kevin McCarthy [Fri, 25 Jul 2014 04:10:24 +0000 (18:10 -1000)]
Merge pull request #87 from hartsock/master

Python 3: print_function