Skip to content

Commit

Permalink
Test(find): test when diacritic_sensitive is set to None
Browse files Browse the repository at this point in the history
  • Loading branch information
mykolaskrynnyk committed Dec 13, 2024
1 parent 8659219 commit 6ee1322
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/odm/operators/find/test_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ async def test_text():
"$diacriticSensitive": True,
}
}
q = Text("something", diacritic_sensitive=None)
assert q == {
"$text": {
"$search": "something",
"$caseSensitive": False,
}
}
q = Text("something", language="test")
assert q == {
"$text": {
Expand Down

0 comments on commit 6ee1322

Please sign in to comment.