Skip to content

Re-work extension point test mocking - #738

Closed
cottsay wants to merge 1 commit into
masterfrom
cottsay/extension-point-tests
Closed

Re-work extension point test mocking#738
cottsay wants to merge 1 commit into
masterfrom
cottsay/extension-point-tests

Conversation

@cottsay

@cottsay cottsay commented Jun 15, 2026

Copy link
Copy Markdown
Member

These brittle mocks stopped working right in Python 3.15. Rather than mock the functions, we can mock the data and let normal Python metadata discovery happen.

Changes to the test functions are probably best viewed with whitespace modifications hidden due to the indentation changes in the test body: https://github.com/colcon/colcon-core/pull/738/changes?w=1

These brittle mocks stopped working right in Python 3.15. Rather than
mock the functions, we can mock the data and let normal Python metadata
discovery happen.
@cottsay cottsay added this to the 0.21.1 milestone Jun 15, 2026
@cottsay cottsay self-assigned this Jun 15, 2026
@cottsay cottsay added the bug Something isn't working label Jun 15, 2026
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.33%. Comparing base (743bea8) to head (cdd60e4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #738      +/-   ##
==========================================
+ Coverage   87.09%   87.33%   +0.24%     
==========================================
  Files          69       69              
  Lines        4130     4130              
  Branches      715      715              
==========================================
+ Hits         3597     3607      +10     
+ Misses        419      411       -8     
+ Partials      114      112       -2     

☔ View full report in Codecov by Harness.
📢 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

cottsay commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

This might be a good change to make long-term, but the bug that I'm trying to fix is actually a lot simpler, so I'm going to punt this for now.

Closing in favor of #739.

@cottsay cottsay closed this Jun 15, 2026
@cottsay
cottsay deleted the cottsay/extension-point-tests branch June 15, 2026 19:58
@cottsay cottsay removed this from the 0.21.1 milestone Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant