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

Class CMAPSpecTestCreator

test/test_connection_monitoring.py:455–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453
454
455class CMAPSpecTestCreator(SpecTestCreator):
456 def tests(self, scenario_def):
457 """Extract the tests from a spec file.
458
459 CMAP tests do not have a 'tests' field. The whole file represents
460 a single test case.
461 """
462 return [scenario_def]
463
464
465test_creator = CMAPSpecTestCreator(create_test, TestCMAP, TestCMAP.TEST_PATH)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected