Skip to content

Commit 6e1a575

Browse files
committed
add missing assert
1 parent a6f9608 commit 6e1a575

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/document/test_indexes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ class Test(Document):
467467
assert (
468468
query_plan["queryPlanner"]["winningPlan"]["stage"] == "EXPRESS_IXSCAN"
469469
)
470+
assert (
471+
query_plan["queryPlanner"]["winningPlan"]["stage"]
472+
== "PROJECTION_SIMPLE"
473+
)
470474
elif mongo_db < MONGODB_80:
471475
query_plan = Test.objects(id=obj.id).exclude("a").explain()
472476
assert (

0 commit comments

Comments
 (0)