1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00
Commit Graph

17 Commits

Author SHA1 Message Date
Kevin McCarthy
d4494bae50 Let's have the new exceptions subclass basic exception types 2013-12-19 19:43:32 -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
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
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
Kevin McCarthy
deed8cab97 Fix issue #36 - error message for unregistered matcher was broken 2013-09-29 15:56:50 -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
c8299103fb pep8 fixes 2013-08-23 20:35:43 -10:00
Kevin McCarthy
a50cebaf21 change response to response_of 2013-08-11 15:05:41 -10:00
Kevin McCarthy
4f0668471e Refactor again to try to give Cassette a cleaner interface 2013-08-11 15:05:41 -10:00
Kevin McCarthy
ac2f21b318 remove extra whitespace 2013-08-11 15:05:41 -10:00
Kevin McCarthy
e39b48e73b add a couple more tests, change played api to require request being played 2013-08-11 15:05:41 -10:00
Kevin McCarthy
4cdf5f7483 update cassette unit tests 2013-08-11 15:05:41 -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
Kevin McCarthy
4fe6f463c3 remove fixtures, remove some dead httpbin assert code 2013-08-11 15:05:40 -10:00
Kevin McCarthy
5f512ca6b2 add unit tests for Cassette implementation 2013-08-11 15:05:39 -10:00
Kevin McCarthy
cbedb5818a add unit tests 2013-08-11 15:05:39 -10:00