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

Prevent .called_ prefix calls in mocks until we upgrade to python 3.12 #22

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

Conversation

carlosa54
Copy link

@carlosa54 carlosa54 commented Nov 4, 2024

Adds rule to prevent .called_ prefix, .has_calls, .not_called to be called in mocks

This rule should be removed when we update to python 3.12 since it should be handled automatically. They included this in python/cpython#100691

tomharel
tomharel previously approved these changes Nov 4, 2024
@carlosa54 carlosa54 marked this pull request as ready for review November 5, 2024 12:39
@carlosa54 carlosa54 requested a review from tomharel November 5, 2024 12:39
@carlosa54 carlosa54 changed the title Initial implementation to prevent .called_ prefix calls in mocks Prevent .called_ prefix calls in mocks until we upgrade to python 3.12 Nov 5, 2024
tomharel
tomharel previously approved these changes Nov 5, 2024
@carlosa54 carlosa54 requested a review from tomharel November 6, 2024 12:39
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