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 method_or_response= as optional keyword parameter for add() method. #737

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

Conversation

paulsuh
Copy link

@paulsuh paulsuh commented Sep 9, 2024

Fixes issue #734

Adds a keyword parameter method_or_response to the add(...) method. The new keyword parameter is added as the last keyword parameter so that existing code that treats the first and second positional arguments as being assigned to the parameters method and url respectively continues to work without modification.

Unit test of the new functionality (all tests passing) and documentation in the README.rst have been added.

@paulsuh paulsuh changed the title Add method_or_response= as possible keyword parameter for add() method. Add method_or_response= as optional keyword parameter for add() method. Sep 9, 2024
responses/__init__.py Outdated Show resolved Hide resolved
@beliaev-maksim
Copy link
Collaborator

please also add a change explanation in the changelog

@paulsuh
Copy link
Author

paulsuh commented Oct 15, 2024

@beliaev-maksim Change log updated

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

Successfully merging this pull request may close these issues.

3 participants