Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test coverage of Aggify is now 100% #42

Merged
merged 14 commits into from
Nov 5, 2023
Merged

Conversation

mahdihaghverdi
Copy link
Contributor

@mahdihaghverdi mahdihaghverdi commented Nov 5, 2023

What's changed

Added

  • a test for _id deletion in project
  • add parametrized tests for add_fields
  • add test for multiple ands for Q
  • add tests for if stmts of the __dunders__ of F
  • add test for the statismethod of F
  • add test for Match.validate_operator method

Changed

  • name fields which is imported from mongoengine is now aliased to mongoengine_fields
  • _fields parameter of add_fields is now fields

Copy link

codecov bot commented Nov 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
aggify/aggify.py 100.00% <100.00%> (ø)
aggify/compiler.py 100.00% <100.00%> (+10.21%) ⬆️
aggify/types.py 100.00% <100.00%> (ø)
aggify/utilty.py 100.00% <100.00%> (ø)
tests/test_aggify.py 100.00% <100.00%> (ø)
tests/test_f.py 100.00% <100.00%> (ø)
tests/test_match.py 100.00% <100.00%> (ø)
tests/test_q.py 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@seyed-dev seyed-dev merged commit 555d146 into Aggify:main Nov 5, 2023
5 checks passed
@mahdihaghverdi mahdihaghverdi deleted the raise-cov branch November 6, 2023 04:43
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.

2 participants