Skip to content

Commit 8789ed8

Browse files
committed
Relax "cannot aggregate encrypted fields" error message, possibly for MongoDB 8.2.2
1 parent b5af7ce commit 8789ed8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/encryption_/test_fields.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,7 @@ def test_time(self):
244244

245245
class QueryTests(EncryptionTestCase):
246246
def test_aggregate_avg(self):
247-
msg = (
248-
"csfle \"analyze_query\" failed: Accumulator '$avg' cannot aggregate encrypted fields."
249-
)
247+
msg = "Accumulator '$avg' cannot aggregate encrypted fields."
250248
with self.assertRaisesMessage(DatabaseError, msg):
251249
list(IntegerModel.objects.aggregate(Avg("value")))
252250

0 commit comments

Comments
 (0)