Ivan Malison
b9bdc6401d
inject_cassette kwarg.
2015-04-01 17:30:05 -07:00
Edward Stone
0def349420
Add ability to filter post data parameters
2015-03-31 13:12:13 -07:00
Ivan Malison
b948ed4857
Fix python3 support for requests file uploads.
2015-03-24 15:41:14 -07:00
Ivan Malison
4b4be7f661
Don't use 2.7+ style ',' separated with.
2015-03-24 14:11:16 -07:00
Ivan Malison
6602a449b1
Add support for posting files through requests. closes #121 . Possibly #134 .
2015-03-24 14:11:16 -07:00
Ivan Malison
39c3b15e02
unused imports.
2015-03-23 17:56:46 -07:00
Ivan Malison
5ab77e22db
Use suggested emacs style coding statements (see https://www.python.org/dev/peps/pep-0263/ ).
2015-03-23 17:55:49 -07:00
aisch
8930c97ff7
rm unused imports
2015-03-23 13:56:48 -07:00
aisch
e6b43a0374
rename urllib3 patch method and rm unused imports from tests
2015-03-23 13:43:30 -07:00
aisch
63ec95be06
update urllib3 patch/stub to be same as used for requests and add tests
2015-03-23 12:12:49 -07:00
Abhinav Gupta
87a25e9ab0
Fix httplib2 integration test.
2015-02-24 00:10:08 -08:00
Abhinav Gupta
2473bdb77a
Fix default port for HTTPS.
2015-02-23 23:37:04 -08:00
Ivan Malison
c0a22df7ed
Add ability to add custom patches to vcr and cassettes.
2015-01-08 10:54:27 -08:00
Ivan Malison
7306205b8a
Improve test_new_episodes_record_mode_two_times test.
2014-11-21 17:15:15 -08:00
Nithin Reddy
2a128893cc
Adds a test to ensure that the cassette created with "new_episodes" has different expected behavior when opened with "once".
2014-11-21 09:47:28 -08:00
Nithin Reddy
5162d183e5
Fixes #123 . When attempting to replay the same request twice using record_mode="new_episodes", vcr.py raises UnhandledHTTPRequestError.
2014-11-20 19:07:21 -08:00
Ivan 'Goat' Malison
0e37759175
Merge pull request #118 from rtaboada/fix-response-stub-headers-field
...
Create headers field in VCRHTTPResponse. Fixes #117 .
2014-11-03 04:07:12 -08:00
Shawn Krisman
b047336690
test_boto_stubs passes again.
2014-10-30 16:08:17 -07:00
Rodrigo Taboada
c955a5ea88
String in request body should be bytes.
2014-10-24 18:30:32 -02:00
Rodrigo Taboada
5423d99f5a
Tests for VCRHTTPResponse headers field.
2014-10-24 17:40:51 -02:00
Ivan Malison
916e7839e5
Actually use pytest.raises in test.
2014-10-07 13:45:09 -07:00
Ivan Malison
99692a92d2
Handle unicode error in json serialize properly.
2014-10-07 13:21:47 -07:00
Ivan Malison
0871c3b87c
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.
2014-09-22 17:57:22 -07:00
Ivan Malison
b046ee4bb1
Fix use_cassette decorator in python 2 by using wrapt.decorator. Add wrapt as dependency.
2014-09-22 16:40:09 -07:00
Ivan Malison
a2c947dc48
Fix last bit of of #109 .
2014-09-21 05:06:28 -07:00
Ivan Malison
121ed79172
Mark bad test xfail.
2014-09-19 17:10:19 -07:00
Ivan Malison
b6e96020c1
Use {[testenv]deps}, instead of repeating testing requirements. Write another failing test for #109
2014-09-19 14:31:49 -07:00
Ivan Malison
8947f0fc5c
Add failing test for session still being attached to cassette after context is gone.
2014-09-18 17:03:13 -07:00
Ivan Malison
58fcb2b453
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.
2014-09-18 16:17:48 -07:00
Ivan Malison
958aac3af3
Use mock for patching http connection objects.
2014-09-18 05:32:55 -07:00
Ivan Malison
9a564586a4
Failing tests for nested context decoration.
2014-09-18 03:46:39 -07:00
Ivan Malison
643a4c91ee
Change use_cassette to pass a function to CassetteContextDecorator so that changes to the default settings on the vcr properly propogate.
2014-09-18 02:52:44 -07:00
Ivan Malison
472cc3bffe
use_cassette -> CassetteContextDecorator
2014-09-17 23:22:43 -07:00
Ivan Malison
a08c90c5d6
Revert "Add global toggle to use_cassette."
...
This reverts commit 366e2b75bb .
Conflicts:
tests/unit/test_cassettes.py
2014-09-17 21:42:25 -07:00
Ivan Malison
9a4f5f23a4
Add before_record_response to Cassette and VCR.
2014-09-17 04:10:05 -07:00
Ivan Malison
366e2b75bb
Add global toggle to use_cassette.
2014-09-17 01:28:54 -07:00
Ivan Malison
cb05f4163c
Add use_cassette class so functinos that are decorated with use_cassette can be called multiple times.
2014-09-16 23:45:05 -07:00
Matt Thomson
3c410b5f9d
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.
2014-09-06 16:57:12 +01:00
Matt Thomson
7a5795a547
Add test to demonstrate Python 3 multiple headers bug.
2014-09-06 16:32:29 +01:00
Kevin McCarthy
9a1147196a
getheader() in stubs should be case-insensitive
2014-08-01 16:28:21 -10:00
Kevin McCarthy
8d90dba16c
Ignore requests before trying to play them
...
Closes #79
2014-05-17 09:34:50 -10:00
Kevin McCarthy
3b05d499c3
Merge pull request #78 from mshytikov/feature/cassette-all-played
...
Feature/Cassette#all_played
2014-05-10 11:58:28 -10:00
Kevin McCarthy
83ff73792e
forgot to check in tests
2014-05-10 11:52:36 -10:00
Kevin McCarthy
b671e7ab99
headers dont retain order anymore.... sigh
2014-05-10 11:52:35 -10:00
Kevin McCarthy
b36a1157e7
Just make all the headers lower for now
2014-05-10 11:52:35 -10:00
Kevin McCarthy
66c6909021
not really very happy about this
2014-05-10 11:52:35 -10:00
Kevin McCarthy
c0691a96e6
flickr test was actually using yaml cassettes
2014-05-10 11:52:35 -10:00
Kevin McCarthy
a302874c6d
update old cassette detection
2014-05-10 11:52:35 -10:00
Kevin McCarthy
b43c63f284
update serializers
2014-05-10 11:52:35 -10:00
Kevin McCarthy
e50f917cf4
Make Serializers Dumber
...
Let's have the serializer just worry about serializing the dict
that we hand it, and move the unicode stuff up to a serialize module.
This should hopefully let us move toward using a version string in
cassettes.
2014-05-10 11:52:35 -10:00