Kevin McCarthy
14590ae3c7
Add httplib2 tests to travis
2014-03-08 19:35:32 -10:00
Kevin McCarthy
d16b20a780
restore tox envs
2014-03-08 19:35:31 -10:00
Roberto Abdelkader Martínez Pérez
46a2c25f6a
httplib2 support
2014-03-08 19:35:30 -10:00
Kevin McCarthy
6bb67567f9
add tests for boto
2014-03-08 19:24:11 -10:00
Kevin McCarthy
e84cd6f059
Major Refactor of Stubs
...
So the stubs were getting out of hand, and while trying to add support for the
putrequest and putheader methods, I had an idea for a cleaner way to handle
the stubs using the VCRHTTPConnection more as a proxy object. So
VCRHTTPConnection and VCRHTTPSConnection no longer inherit from HTTPConnection
and HTTPSConnection. This allowed me to get rid of quite a bit of
copy-and-pasted stdlib code.
2014-03-08 19:22:58 -10:00
Kevin McCarthy
c0b88c2201
Merge pull request #65 from msabramo/patch-1
...
README.md: minor formatting, add links
2014-03-08 19:18:14 -10:00
Marc Abramowitz
f003e3e4ab
README.md: minor formatting, add links
2014-03-03 06:26:57 -08:00
Kevin McCarthy
d0e6f9c047
Add note to README about tox usage
2014-02-09 08:49:58 -10:00
Kevin McCarthy
1298d6f5c7
Merge pull request #61 from msabramo/tox_posargs
...
tox.ini: Add {posargs} for passing args to py.test
2014-02-09 08:49:22 -10:00
Kevin McCarthy
df67dd1728
Merge pull request #63 from msabramo/issue_59_save_requests_HTTPSConnection
...
patch: Save requests...HTTPSConnection
2014-02-04 10:49:28 -08:00
Marc Abramowitz
559cd902e1
patch: Save requests...HTTPSConnection
...
so that we unpatch back to the correct class in reset().
Closes #59
2014-02-04 10:30:29 -08:00
Marc Abramowitz
c44fee1f16
tox.ini: Add {posargs} for passing args to py.test
...
This allows you to do stuff like:
tox -e py26requests,py27requests,pypyrequests -- tests/integration/test_requests.py
2014-02-04 00:25:13 -08:00
Kevin McCarthy
8620bc3af1
Update README.md
v0.6.0
2014-01-11 09:34:40 -10:00
Kevin McCarthy
84bf7b6132
Load Old Cassettes
...
Add backwards-compatible cassette loading code that can load
the old style header dicts from response cassettes.
2014-01-11 09:28:45 -10:00
Kevin McCarthy
2cf779d776
PEP8 Fixes
2013-12-19 19:43:32 -10:00
Kevin McCarthy
d4494bae50
Let's have the new exceptions subclass basic exception types
2013-12-19 19:43:32 -10:00
Marc Abramowitz
41f5fce895
Nicer error for can't overwrite existing cassette
...
Raise CannotOverwriteExistingCassetteException rather than Exception.
Include cassette filename and record mode in error message.
2013-12-19 19:20:00 -10:00
Marc Abramowitz
a6806f2f99
Nicer error when cassette doesn't contain request
...
Raise UnhandledHTTPRequestError.
Show name of cassette and request.
2013-12-19 15:41:04 -08:00
Kevin McCarthy
624212ef15
Store Headers as a List
...
This is a backwards-incompatible change that will store headers
as a list rather than a dictionary. The reason being that you can
have multiple values for a single header, and concatenating them
together with commas can create an unparseable string (sometimes
the header values can have commas in them)
2013-12-15 16:56:39 -10:00
Kevin McCarthy
144d25bc66
Add Decorator Support
2013-12-15 16:56:25 -10:00
Kevin McCarthy
0d08157e5d
Removing Pypy tests until travis installs version 2.2.1
2013-12-15 16:39:44 -10:00
Kevin McCarthy
ea24854093
Version bump to 0.5.0
2013-12-01 14:51:29 -10:00
Kevin McCarthy
49929e3064
formatting fixes
2013-12-01 14:38:46 -10:00
Kevin McCarthy
188b57a2fa
Fix API by adding 'responses_of' method
...
`responses_of` replaces `response_of`, since each request can have
several matching responses now.
This breaks backwards compatibility if you are using the
response_of method, so a version bump will be required.
2013-12-01 14:26:35 -10:00
Kevin McCarthy
b84f8e963b
Fix Cryptic 'write-protected' Message
...
Closes #46
2013-12-01 13:46:44 -10:00
Marc Abramowitz
ea13d51677
del self.sock in VCRConnectionMixin.request
...
instead of in connection class constructors.
Fixes GH-48.
2013-11-26 12:12:39 -08:00
Marc Abramowitz
5ba4000f77
Add test: test_session_and_connection_close
...
This is a test for issue GH-48.
2013-11-26 12:07:13 -08:00
Kevin McCarthy
a4844d972b
Version Bump to 0.4.0
v0.4.0
2013-11-10 12:37:54 -10:00
Kevin McCarthy
c2d857c585
Remove Secure File Overwrite Support
...
Closes #42
2013-11-10 12:25:59 -10:00
Kevin McCarthy
89403c255c
Record Multiple Matching Requests
...
This change allows us to record multiple matching requests to
the same URL, and then play them back sequentially.
Closes #40 , #41
2013-11-10 12:17:39 -10:00
Veros Kaplan
d50ded68ca
Added test: accessing same recource three times in once mode
2013-11-10 10:54:09 -10:00
Veros Kaplan
16fa4f851d
Added test: accessing two times same page
2013-11-10 10:54:09 -10:00
Kevin McCarthy
6200493896
Remove Some stray \t characters
...
I guess that's what I get for playing around with my vimrc.
Thanks to @bryanhelmig for pointing these out.
2013-11-09 17:52:02 -10:00
Kevin McCarthy
b0a13ba690
Fix Requests so it can gunzip the request body
...
I wasn't emulating the stateful file-object in my response stub,
so urllib3 wasn't decompressing gzipped bodies properly. This
should fix that problem.
Thanks @bryanhelmig for the motivation to dig into this.
2013-11-09 17:51:29 -10:00
Kevin McCarthy
d33b19b5bb
Fix Requests 2, Version Bump to 0.3.5
...
This fixes a compatiblity issue with the new version of requests.
Bumps the release version to 0.3.5, and closes #39 .
v0.3.5
2013-10-24 21:57:18 -10:00
Kevin McCarthy
2275749eaa
bump for version 0.3.4
v0.3.4
2013-10-24 19:56:36 -10:00
smallcode
16fbe40d87
Update filesystem.py
...
fix WindowsError: [Error 32].
because must close the file before rename the file in window system.
2013-10-22 17:41:56 +08:00
Kevin McCarthy
deed8cab97
Fix issue #36 - error message for unregistered matcher was broken
2013-09-29 15:56:50 -10:00
Kevin McCarthy
cf8646d8d6
Bump version for bugfix release
2013-09-21 16:52:09 -10:00
Hector Dearman
c03459e582
allow match_on to be passed as an argument VCR
2013-09-21 16:52:09 -10:00
Kevin McCarthy
912452e863
Only use the relative path in HTTP requests
...
This causes a pretty big problem on out-of-spec HTTP servers (like
Flickr). Closes #31
v0.3.1
2013-09-17 13:19:26 -10:00
Kevin McCarthy
ce3d7270ea
Update README.md
v0.3.0
2013-09-16 20:56:16 -10:00
Kevin McCarthy
39d696bc49
Update README.md
2013-09-16 20:54:27 -10:00
Kevin McCarthy
ce94fd72fd
bump development status to Beta
2013-09-16 20:52:38 -10:00
Kevin McCarthy
a66f462dcd
Add support for custom request matchers
...
This commit not only changes the default method of matching requests
(just match on method and URI instead of the entire request + headers)
but also allows the user to add custom matchers.
2013-09-16 20:46:00 -10:00
Kevin McCarthy
03c22d79dd
Add support for configurable record modes
...
This support will let you select one of four different behaviors
for VCR's cassettes. Closes #23
2013-09-15 18:43:02 -10:00
Kevin McCarthy
5ce67dc023
Add support for calling httplib.send().
...
This commit changes the whole core internal flow of requests.
Now, requests are actually physically made lazily when a response
is requested. This allows the entire request to be sent at once.
Otherwise, it would be impossible to compare whether requests have
already been recorded, since httplib.send() allows you to effectively
stream requests over HTTP.
2013-09-15 18:43:02 -10:00
Kevin McCarthy
07774ae6dd
Add new subdirectories in setup.py. Closes #26 . Bumps version
v0.2.1
2013-08-30 08:01:54 -10:00
Kevin McCarthy
e1c7eb1ec5
Update README.md
v0.2.0
2013-08-24 08:09:51 -10:00
Kevin McCarthy
7f958246e0
Update README.md
2013-08-23 21:41:52 -10:00