File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -934,18 +934,19 @@ async def test_clone(self):
934
934
cursor2 = copy .copy (cursor )
935
935
cursor2 ._projection ["cursor2" ] = False
936
936
self .assertIsNotNone (cursor ._projection )
937
- self .assertIn ("cursor2" , cursor ._projection )
937
+ print (cursor ._projection .keys ())
938
+ self .assertIn ("cursor2" , cursor ._projection .keys ())
938
939
939
940
# Deepcopies and shouldn't mutate
940
941
cursor3 = copy .deepcopy (cursor )
941
942
cursor3 ._projection ["cursor3" ] = False
942
943
self .assertIsNotNone (cursor ._projection )
943
- self .assertNotIn ("cursor3" , cursor ._projection )
944
+ self .assertNotIn ("cursor3" , cursor ._projection . keys () )
944
945
945
946
cursor4 = cursor .clone ()
946
947
cursor4 ._projection ["cursor4" ] = False
947
948
self .assertIsNotNone (cursor ._projection )
948
- self .assertNotIn ("cursor4" , cursor ._projection )
949
+ self .assertNotIn ("cursor4" , cursor ._projection . keys () )
949
950
950
951
# Test memo when deepcopying queries
951
952
query = {"hello" : "world" }
Original file line number Diff line number Diff line change @@ -925,18 +925,19 @@ def test_clone(self):
925
925
cursor2 = copy .copy (cursor )
926
926
cursor2 ._projection ["cursor2" ] = False
927
927
self .assertIsNotNone (cursor ._projection )
928
- self .assertIn ("cursor2" , cursor ._projection )
928
+ print (cursor ._projection .keys ())
929
+ self .assertIn ("cursor2" , cursor ._projection .keys ())
929
930
930
931
# Deepcopies and shouldn't mutate
931
932
cursor3 = copy .deepcopy (cursor )
932
933
cursor3 ._projection ["cursor3" ] = False
933
934
self .assertIsNotNone (cursor ._projection )
934
- self .assertNotIn ("cursor3" , cursor ._projection )
935
+ self .assertNotIn ("cursor3" , cursor ._projection . keys () )
935
936
936
937
cursor4 = cursor .clone ()
937
938
cursor4 ._projection ["cursor4" ] = False
938
939
self .assertIsNotNone (cursor ._projection )
939
- self .assertNotIn ("cursor4" , cursor ._projection )
940
+ self .assertNotIn ("cursor4" , cursor ._projection . keys () )
940
941
941
942
# Test memo when deepcopying queries
942
943
query = {"hello" : "world" }
You can’t perform that action at this time.
0 commit comments