diff --git a/test/test_examples.py b/test/test_examples.py index dae1f9d4e..44f8532d1 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -695,12 +695,8 @@ class TestSampleShellCommands(unittest.TestCase): # Start Changestream Example 4 pipeline = [ - {"$match": { - "$or": [ - {"fullDocument.username": "alice"}, - {"operationType": {"$in": ["delete"]}}] - } - } + {'$match': {'fullDocument.username': 'alice'}}, + {'$addFields': {'newField': 'this is an added field!'}} ] cursor = db.inventory.watch(pipeline=pipeline) document = next(cursor)