We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8afbc64 commit 6569933Copy full SHA for 6569933
test/test_change_stream.py
@@ -367,8 +367,13 @@ def test_change_operations(self):
367
self.assertEqual(change['operationType'], 'update')
368
self.assertEqual(change['ns'], expected_ns)
369
self.assertNotIn('fullDocument', change)
370
- self.assertEqual({'updatedFields': {'new': 1},
371
- 'removedFields': ['foo']},
+
+ expected_update_description = {
372
+ 'updatedFields': {'new': 1},
373
+ 'removedFields': ['foo']}
374
+ if client_context.version.at_least(4, 5, 0):
375
+ expected_update_description['truncatedArrays'] = []
376
+ self.assertEqual(expected_update_description,
377
change['updateDescription'])
378
# Replace.
379
self.watched_collection().replace_one({'new': 1}, {'foo': 'bar'})
0 commit comments