From 9aa7adab0f9e6defbbedaa7a860b2ae51837b341 Mon Sep 17 00:00:00 2001 From: Prashant Mital <5883388+prashantmital@users.noreply.github.com> Date: Fri, 10 Aug 2018 15:21:54 -0700 Subject: [PATCH] PYTHON-1621 Modify change stream output example for manual (#370) --- test/test_examples.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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)