MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / setUp

Method setUp

test/test_topology.py:99–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97 """Disables periodic monitoring, to make tests deterministic."""
98
99 def setUp(self):
100 super().setUp()
101 self.client_knobs = client_knobs(heartbeat_frequency=999999)
102 self.client_knobs.enable()
103 self.addCleanup(self.client_knobs.disable)
104
105
106class TestTopologyConfiguration(TopologyTest):

Callers

nothing calls this directly

Calls 3

client_knobsClass · 0.90
addCleanupMethod · 0.80
enableMethod · 0.45

Tested by

no test coverage detected