Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to remove unused requests from cassette #763

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Jan 2, 2023

  1. 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.
    danielnsilva committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    99c0384 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2023

  1. Configuration menu
    Copy the full SHA
    010fa26 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36c7465 View commit details
    Browse the repository at this point in the history