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

Method setUpClass

test/unified_format.py:524–532  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

522
523 @classmethod
524 def setUpClass(cls) -> None:
525 # Speed up the tests by decreasing the heartbeat frequency.
526 cls.knobs = client_knobs(
527 heartbeat_frequency=0.1,
528 min_heartbeat_interval=0.1,
529 kill_cursor_frequency=0.1,
530 events_queue_frequency=0.1,
531 )
532 cls.knobs.enable()
533
534 @classmethod
535 def tearDownClass(cls) -> None:

Callers

nothing calls this directly

Calls 2

client_knobsClass · 0.90
enableMethod · 0.45

Tested by

no test coverage detected