MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / CustomSpecTestCreator

Class CustomSpecTestCreator

test/test_server_selection_in_window.py:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89class CustomSpecTestCreator(SpecTestCreator):
90 def tests(self, scenario_def):
91 """Extract the tests from a spec file.
92
93 Server selection in_window tests do not have a 'tests' field.
94 The whole file represents a single test case.
95 """
96 return [scenario_def]
97
98
99CustomSpecTestCreator(create_test, TestAllScenarios, TEST_PATH).create_tests()

Calls

no outgoing calls

Tested by

no test coverage detected