File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,16 @@ def maybe_skip_scenario(self, test):
7070 self .skipTest ('PyMongo does not support %s' % (name ,))
7171
7272 # Serverless does not support $out and collation.
73- for operation in test ['operations' ]:
74- if operation ['name' ] == 'aggregate' :
75- for stage in operation ['arguments' ]['pipeline' ]:
76- if "$out" in stage :
77- self .skipTest ("MongoDB Serverless does not support $out" )
78-
79- if "collation" in operation ['arguments' ]:
80- self .skipTest ("MongoDB Serverless does not support collations" )
73+ if client_context .serverless :
74+ for operation in test ['operations' ]:
75+ if operation ['name' ] == 'aggregate' :
76+ for stage in operation ['arguments' ]['pipeline' ]:
77+ if "$out" in stage :
78+ self .skipTest (
79+ "MongoDB Serverless does not support $out" )
80+ if "collation" in operation ['arguments' ]:
81+ self .skipTest (
82+ "MongoDB Serverless does not support collations" )
8183
8284 # Skip changeStream related tests on MMAPv1 and serverless.
8385 test_name = self .id ().rsplit ('.' )[- 1 ]
You can’t perform that action at this time.
0 commit comments