1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00
Files
vcrpy/vcr
Daniel Silva 99c0384770 feat: add an option to exclude unused interactions
Introduce the `drop_unused_requests` option (False by default). If True, it will force the `Cassette` saving operation with only played old interactions and new ones if they exist. As a result, unused old requests are dropped.

Add `_old_interactions`, `_played_interactions` and `_new_interactions()`.  The `_old_interactions` are previously recorded interactions loaded from Cassette files. The `_played_interactions` is a set of old interactions that were marked as played.  A new interaction is a tuple (request, response) in `self.data` that is not in `_old_interactions` list.
2023-01-02 03:52:52 +00:00
..
2022-10-09 11:35:37 -03:00
2022-10-09 11:35:37 -03:00
2022-10-09 11:35:37 -03:00
2022-10-09 11:35:37 -03:00
2022-10-09 11:35:37 -03:00
2022-10-09 11:35:37 -03:00
2022-10-09 11:35:37 -03:00
2021-08-16 06:56:36 +03:00
2022-10-09 11:35:37 -03:00
2022-10-09 11:35:37 -03:00