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

Refactor assert_called_with to compare selected fields #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hamedsh
Copy link

@hamedsh hamedsh commented Mar 22, 2024

This update refactors the method assert_called_with in the aioresponses module. The method now takes an optional argument, args_to_match, which allows the comparison between certain fields of the actual call and the expected call. This update also includes some improvements on the clarity and neatness of the methodology within the method. Relevant tests have been added to ensure the functionality of the updated code.

This update refactors the method assert_called_with in the aioresponses module. The method now takes an optional argument, args_to_match, which allows the comparison between certain fields of the actual call and the expected call. This update also includes some improvements on the clarity and neatness of the methodology within the method. Relevant tests have been added to ensure the functionality of the updated code.
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.

1 participant