Kevin McCarthy
5c0a1e1769
persist on _vcr_request
2013-08-11 18:32:02 -10:00
Kevin McCarthy
d00c27e244
refactor tests a bit
2013-08-11 18:23:46 -10:00
Kevin McCarthy
e61c503d96
Use ordereddict so responses actually stay in order
2013-08-11 17:54:22 -10:00
Kevin McCarthy
a6c59c20d2
remove debugging code from Request and add repr
2013-08-11 17:51:33 -10:00
Kevin McCarthy
ce88331ebe
add test for redirects
2013-08-11 15:05:42 -10:00
Kevin McCarthy
c7abde24b8
improve mocked headers so urllib2 can handle redirects too
2013-08-11 15:05:42 -10:00
Kevin McCarthy
5eab2edd70
Fix travis
2013-08-11 15:05:42 -10:00
Kevin McCarthy
f353a95af5
whats up with travis
2013-08-11 15:05:42 -10:00
Kevin McCarthy
ac862d5aff
update test_wild path
2013-08-11 15:05:42 -10:00
Kevin McCarthy
768b61316a
move wild into its own folder
2013-08-11 15:05:42 -10:00
Kevin McCarthy
fcc50eb44e
dont try to create empty dirs
2013-08-11 15:05:42 -10:00
Kevin McCarthy
a1229190f5
convert requests tests to pytest
2013-08-11 15:05:42 -10:00
Kevin McCarthy
c5294a09f7
convert tests to pytest
2013-08-11 15:05:41 -10:00
Kevin McCarthy
1a73334b50
update tests
2013-08-11 15:05:41 -10:00
Kevin McCarthy
d76c9994a7
update fixture to add proto
2013-08-11 15:05:41 -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
4f0668471e
Refactor again to try to give Cassette a cleaner interface
2013-08-11 15:05:41 -10:00
Kevin McCarthy
c22db0d8cb
bump revision number since I broke backwards compat
2013-08-11 15:05:41 -10:00
Kevin McCarthy
b6fcb02d7c
update readme
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
ac2f21b318
remove extra whitespace
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
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
70c7e040fb
update tox to reflect new text directory structure
2013-08-11 15:05:40 -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
0e003575a1
add pytestdebug to .gitignore
2013-08-11 15:05:40 -10:00
Kevin McCarthy
7221141cdd
add back the secure write
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
9b665fef27
dont append to cassette file
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
Kevin McCarthy
6cbd84c15f
fix travis
2013-08-11 15:05:40 -10:00
Kevin McCarthy
2ed4b730c4
oops, shouldnt have removed that file
2013-08-11 15:05:40 -10:00
Kevin McCarthy
a8c4061352
fix typo
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
7fedd8c584
remove typo
2013-08-11 15:05:40 -10:00
Kevin McCarthy
30350ac3d7
fix typo
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
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
3742e2fdc0
update copyright date
2013-08-05 19:41:46 -10:00
Kevin McCarthy
9c03153e6c
Update README / version bump for new libyaml feature
2013-07-24 18:48:33 -10:00
Kevin McCarthy
9650e945af
Merge pull request #16 from dlecocq/master
...
Use the libYAML version of yaml if it's available
2013-07-24 21:45:43 -07:00
Dan Lecocq
e9cb0bff47
Use the libYAML version of yaml if it's available
2013-07-23 15:25:33 -07:00