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

Enhancement request: allow removal of repeat=True #252

Open
rlippmann opened this issue Jan 9, 2024 · 2 comments
Open

Enhancement request: allow removal of repeat=True #252

rlippmann opened this issue Jan 9, 2024 · 2 comments

Comments

@rlippmann
Copy link

First of all, thanks for this awesome package!

I was looking for a way to remove responses where repeat = True.

My rationale is that I set up pytest fixtures which mock a server working correctly. Generally I just set repeat = True for most cases (i.e. successful login/logout, poll of data from website, etc). But for failure cases I need to create whole new fixtures. It would be easier if I could just pop the repeat = True response and replace it for the test.

I could go in, find the corresponding _requests entry and remove it, but I'd rather not use private objects.

TIA

@guilhermeferrari
Copy link

#237 will fix it 🙏🏻

@rlippmann
Copy link
Author

I saw that enhancement request. I don't understand why you can't just add the requests in a for loop for that one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants