Kevin McCarthy
34d07406f9
missed a httpbin call
2016-05-01 17:16:05 -10:00
Kevin McCarthy
4e36997e1a
Use pytest-httpbin
...
This will help the test flakiness and speed up test runs.
2016-05-01 13:50:04 -10:00
Jayson Reis
632af2e41a
Fix/ignore some flake errors
2016-01-20 12:28:46 +01:00
Jayson Reis
7fdfce65ee
Add test to make sure we can post chunked binary data
2016-01-20 12:17:28 +01:00
Ivan 'Goat' Malison
3459d95d4f
Merge pull request #234 from tobiowo/decode-compressed-response
...
Decode compressed response option
2015-12-31 10:18:34 -08:00
Abhinav Gupta
d780bc04dd
Fix Tornado support behavior for Tornado 3.
...
Resolves #235 .
2015-12-19 18:18:20 -08:00
Olutobi Owoputi
5d866dd77c
support python 3.4
2015-12-02 14:43:06 -08:00
Olutobi Owoputi
2d08358b5c
tests / docs for decode_compressed_response
2015-12-02 12:26:23 -08:00
John Vandenberg
dc9cd4229b
Fix pyflakes and pep8 errors
...
Use extra asserts to use previously unused variables in tests,
such as `cass` and `response`.
Fix only pyflakes errors in docs/conf.py
2015-11-26 08:25:06 +11:00
Ivan 'Goat' Malison
34252bc234
Merge pull request #192 from agriffis/insensitive-headers
...
Make request.headers always a CaseInsensitiveDict.
2015-08-28 14:47:45 -07:00
Ivan Malison
5f78657c52
test_boto cleanup
2015-08-28 13:03:09 -07:00
Aron Griffis
eda64bc3be
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.
2015-08-24 16:19:34 -04:00
Abhinav Gupta
1e1c093b3c
Set request_time on Tornadoo HTTPResponses
2015-08-18 15:53:35 -07:00
Maarten van Schaik
ca3200d96e
Add test for urllib2
2015-08-14 12:42:17 +02:00
Maarten van Schaik
04b5978adc
Add effective url test for httplib2
2015-08-14 12:37:34 +02:00
Maarten van Schaik
01f1f9fdc1
Verify effective_url is ok
2015-08-14 12:29:50 +02:00
Maarten van Schaik
a82e8628c2
Requests actually stores redirected request
2015-08-14 12:28:41 +02:00
Maarten van Schaik
7d68f0577a
Capture effective URL in tornado
2015-08-14 12:08:57 +02:00
Abhinav Gupta
c4a33d1cff
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 .
2015-08-12 10:51:08 -07:00
Abhinav Gupta
946ce17a97
Fix exception catching in coroutines.
2015-07-30 14:13:58 -07:00
Ivan Malison
4d438dac75
Fix tornado python3 tests.
2015-07-30 04:19:17 -07:00
Ivan Malison
1d000ac652
Fix all the failing tests
2015-07-30 02:08:42 -07:00
Ivan Malison
21c176ee1e
Make cassette active for duration of coroutine/generator
...
Closes #177 .
2015-07-30 01:47:29 -07:00
Abhinav Gupta
3846a4ccef
[Tornado] Fix unsupported features exception not being raised.
...
Add tests for that exception being raisd correctly and for
CannotOverwriteCassetteException.
2015-07-03 12:34:57 -07:00
Abhinav Gupta
7922fec9fe
Tornado support
2015-07-02 14:33:34 -07:00
Jonathan
e742d32a8a
Update test to ensure that filter is correctly applied
2015-06-24 16:27:45 +01:00
Jonathan
ccc1ccaa0e
Allow filtering post params in requests
2015-06-24 16:23:00 +01:00
Ivan Malison
731a33a79a
test for xmlrpclib to make sure #140 is actually fixed.
2015-06-09 01:13:58 -07:00
marco.santamaria
59aa351ca8
Added support for json post data in filter_post_data_parameters.
2015-05-14 14:13:14 +02:00
Kevin McCarthy
856c38479a
add failing test for requests2.7/gzip issue
2015-05-05 20:49:12 -10: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
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
Shawn Krisman
b047336690
test_boto_stubs passes again.
2014-10-30 16:08:17 -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
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