1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00
Commit Graph

64 Commits

Author SHA1 Message Date
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
2013-09-17 13:19:26 -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
c8299103fb pep8 fixes 2013-08-23 20:35:43 -10:00
Kevin McCarthy
5c0a1e1769 persist on _vcr_request 2013-08-11 18:32:02 -10:00
Kevin McCarthy
c7abde24b8 improve mocked headers so urllib2 can handle redirects too 2013-08-11 15:05:42 -10:00
Kevin McCarthy
ec01955c68 lets store the proto too 2013-08-11 15:05:41 -10:00
Kevin McCarthy
59567a26cc lets make url the actual url instead of just the path 2013-08-11 15:05:41 -10:00
Kevin McCarthy
a50cebaf21 change response to response_of 2013-08-11 15:05:41 -10:00
Kevin McCarthy
d322bc01da update vcr stubs to actually call mark_played correctly 2013-08-11 15:05:41 -10:00
Kevin McCarthy
87d27a7199 add requests class to sow the seeds of a custom matcher 2013-08-11 15:05:40 -10:00
Kevin McCarthy
166facd0d0 check that cassette contains things before returning 2013-08-11 15:05:40 -10:00
Kevin McCarthy
fb2aa89445 replace cached() with mark_played / play_count 2013-08-11 15:05:40 -10:00
Dan Lecocq
b488ca67fe Substantial refactoring
This refactoring includes some PEP-8 compliance changes, as well as some more
complete testing to ensure that we're in fact serving everything out of
cassettes when we thing we are.

Incidentally, it also includes fixes for #3 and #4
2013-08-11 15:05:39 -10:00