1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-10 01:25:34 +00:00

replace cached() with mark_played / play_count

This commit is contained in:
Kevin McCarthy
2013-08-05 22:25:45 -10:00
parent 9b665fef27
commit fb2aa89445
6 changed files with 42 additions and 49 deletions

View File

@@ -67,9 +67,9 @@ class VCRConnectionMixin:
# then return it
response = self.cassette.response(self._request)
if response:
# Alert the cassette to the fact that we've served another cached
# Alert the cassette to the fact that we've served another
# response for the provided requests
self.cassette.cached(self._request)
self.cassette.mark_played()
return VCRHTTPResponse(response)
# Otherwise, we made an actual request, and should return the response