Skip to content

Conversation

@sajalshh
Copy link

Fix MagicMock misuse in pre-start tests

What changed:

  • Fixed incorrect use of MagicMock(return_value=True) in pre-start tests
  • Replaced invalid called_once_with checks with assert_called_once_with
  • Ensured tests actually validate behavior instead of being no-ops

Why?

  • Python 3.12+ tightened MagicMock behavior
  • Existing tests error out due to invalid MagicMock usage
  • This makes the tests meaningful and future-proof

@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Jan 22, 2026
@github-actions
Copy link
Contributor

This pull request has a merge conflict that needs to be resolved.

@tiangolo
Copy link
Member

It seems this was handled in another PR, so I'll close this one now. Thanks! ☕

@tiangolo tiangolo closed this Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts Automatically generated when a PR has a merge conflict

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants