Skip to content

test(data): MongoDB query operator + projection execution coverage (v26.06.76)#103

Merged
ancongui merged 1 commit into
mainfrom
test/mongo-query-execution
Jun 7, 2026
Merged

test(data): MongoDB query operator + projection execution coverage (v26.06.76)#103
ancongui merged 1 commit into
mainfrom
test/mongo-query-execution

Conversation

@ancongui
Copy link
Copy Markdown
Contributor

@ancongui ancongui commented Jun 7, 2026

Closes the last audit test-depth gaps for the document repository. The Mongo query compiler + projections were only smoke-tested (clause construction / return-type acceptance, never executed). tests/data/test_mongo_query_execution.py now runs them against a real mongomock collection and asserts results:

  • every comparison operator end-to-end: greater_than(_equal), less_than, between, in, containing (case-insensitive), order_by desc, count_by;
  • projection queries returning the field-subset as SimpleNamespace (non-projected fields absent), not full documents.

9 tests. Test-only. Gates: ruff+format, full suite green.

…erage + bump v26.06.76

Closes the audit's smoke-only gaps for the document repository. tests/data/test_mongo_query_execution.py
executes the Mongo query compiler + projections against a real mongomock collection (not just clause
construction): all comparison operators (gt/gte/lt/between/in/containing/order_by/count_by) end-to-end
with result assertions, and projection queries returning the field-subset (SimpleNamespace, non-projected
fields absent). 9 tests. Gates: ruff + format, full suite green.
@ancongui ancongui merged commit aed5701 into main Jun 7, 2026
5 checks passed
@ancongui ancongui deleted the test/mongo-query-execution branch June 7, 2026 22:05
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