Skip to content

Fix CI against current test dependencies - #951

Open
binggao1230 wants to merge 3 commits into
mongomock:developfrom
binggao1230:fix-hatch-test-py39-coverage
Open

binggao1230 wants to merge 3 commits into
mongomock:developfrom
binggao1230:fix-hatch-test-py39-coverage

Conversation

@binggao1230

@binggao1230 binggao1230 commented Jun 20, 2026 •

Copy link
Copy Markdown

Summary

  • explicitly configure hatch-test dependencies instead of relying on Hatch defaults
  • keep the test environment compatible with the project's Python 3.9 test matrix by using coverage 7.10.x and pytest 8.4.x
  • validate invalid regex option flags and align flag handling with the existing real-Mongo comparison tests
  • keep query regex options case-insensitive, matching the aggregate path

Verification

  • uvx hatch test -py=3.9 --cover -- tests/test__diff.py::DiffTest::test__assert_no_diff
  • uvx hatch test -py=3.10 --cover -- tests/test__diff.py::DiffTest::test__assert_no_diff
  • uvx hatch test -py=3.9 --cover -- tests/test__collection_api.py::CollectionAPITest::test__regex_options
  • uvx hatch test -py=3.10 --cover -- tests/test__collection_api.py::CollectionAPITest::test__regex_options
  • uvx hatch fmt --check
  • git diff --check
  • local fake-only checks for invalid query regex flags and Unicode-flag exception cases

@binggao1230 binggao1230 changed the title Pin hatch test dependencies for Python 3.9 Fix CI against current test dependencies Jun 20, 2026
@binggao1230
binggao1230 force-pushed the fix-hatch-test-py39-coverage branch from 38c03c1 to 944c7f9 Compare June 20, 2026 22:08
@codecov

codecov Bot commented Jun 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.08%. Comparing base (d5c0e8b) to head (b4e10a7).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #951   +/-   ##
========================================
  Coverage    96.07%   96.08%           
========================================
  Files           35       35           
  Lines        10118    10131   +13     
========================================
+ Hits          9721     9734   +13     
  Misses         397      397           

☔ 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.

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