Skip to content

Conversation

@cottsay
Copy link
Member

@cottsay cottsay commented Nov 24, 2025

We should patch the reference site, not the definition site for a more robust patch.

https://docs.python.org/3/library/unittest.mock.html#where-to-patch

Fixes #55

We should patch the reference site, not the definition site for a more
robust patch.

Fixes 9f2dc67
@codecov-commenter
Copy link

codecov-commenter commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 15.30%. Comparing base (9f2dc67) to head (b7613f8).

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #57   +/-   ##
=======================================
  Coverage   15.30%   15.30%           
=======================================
  Files          11       11           
  Lines         562      562           
  Branches       94       94           
=======================================
  Hits           86       86           
  Misses        474      474           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cottsay
Copy link
Member Author

cottsay commented Nov 24, 2025

@leander-dsouza if you could take a look, this is a follow-up to the last PR and will help us clean up the import hacks in #54.

@cottsay cottsay merged commit ebedd27 into master Nov 25, 2025
23 checks passed
@cottsay cottsay deleted the cottsay/deprecation-test-fix branch November 25, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants