Kevin McCarthy
144d25bc66
Add Decorator Support
2013-12-15 16:56:25 -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
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
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
c8299103fb
pep8 fixes
2013-08-23 20:35:43 -10:00
shu zOMG chen
b55834e929
Don't save cassette when it hasn't been modified
2013-08-23 20:35:42 -10:00
Kevin McCarthy
65254b4969
change serializer API so it doesn't have to do file stuff
2013-08-22 19:18:58 -10:00
Kevin McCarthy
6005420409
Let's do an instance/module-based API for serializers
2013-08-22 17:39:52 -10:00
Kevin McCarthy
b7af8bae71
keep yaml as default cassette serializer to fix unit tests
2013-08-19 19:49:06 -10:00
Kevin McCarthy
1478ce82fd
make config options actually do stuff
2013-08-19 19:49:06 -10:00
shu zOMG chen
51f0f1bacd
Adding json serializer
2013-08-19 19:49:05 -10:00
Kevin McCarthy
e61c503d96
Use ordereddict so responses actually stay in order
2013-08-11 17:54:22 -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
4f0668471e
Refactor again to try to give Cassette a cleaner interface
2013-08-11 15:05:41 -10:00
Kevin McCarthy
5d1c1ecc92
add str to cassette object
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
3c614d0e9b
add backported counter module
2013-08-11 15:05:41 -10:00
Kevin McCarthy
9ac03c889a
hold counts in a Counter
2013-08-11 15:05:40 -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
37504c8982
remove some TODOs
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
77f0ef5c33
bring back the files module, but do serialization in cassette
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
Kevin McCarthy
2576878f2e
Cassettes now store multiple requests
2012-06-30 15:10:20 -10:00
kevin1024
431e385ded
initial commit
2012-05-30 20:52:26 -10:00