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

Method disable

test/helpers.py:87–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85
86 @no_type_check
87 def disable(self):
88 common.HEARTBEAT_FREQUENCY = self.old_heartbeat_frequency
89 common.MIN_HEARTBEAT_INTERVAL = self.old_min_heartbeat_interval
90 common.KILL_CURSOR_FREQUENCY = self.old_kill_cursor_frequency
91 common.EVENTS_QUEUE_FREQUENCY = self.old_events_queue_frequency
92 self._enabled = False
93
94 def __exit__(self, exc_type, exc_val, exc_tb):
95 self.disable()

Callers 7

__exit__Method · 0.95
__del__Method · 0.95
tearDownMethod · 0.45
tearDownClassMethod · 0.45
tearDownMethod · 0.45
teardownFunction · 0.45
tearDownClassMethod · 0.45

Calls

no outgoing calls

Tested by 2

tearDownMethod · 0.36
tearDownClassMethod · 0.36