Skip to content

Refactor assert_called_with to compare selected fields#257

Open
hamedsh wants to merge 1 commit intopnuckowski:masterfrom
hamedsh:Refactor-assert_called_with-to-compare-selected-fields
Open

Refactor assert_called_with to compare selected fields#257
hamedsh wants to merge 1 commit intopnuckowski:masterfrom
hamedsh:Refactor-assert_called_with-to-compare-selected-fields

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