mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 09:35:34 +00:00
replace cached() with mark_played / play_count
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user