MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / setUp

Method setUp

tests/unit/test_control_connection.py:559–567  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

557 Added for PYTHON-358
558 """
559 def setUp(self):
560 self.cluster = MockCluster()
561 self.connection = MockConnection()
562 self.time = FakeTime()
563
564 # Use 2 for the schema_event_refresh_window which is what we would normally default to.
565 self.control_connection = ControlConnection(self.cluster, 1, 2, 0, 0)
566 self.control_connection._connection = self.connection
567 self.control_connection._time = self.time
568
569 def test_event_delay_timing(self):
570 """

Callers

nothing calls this directly

Calls 4

ControlConnectionClass · 0.90
MockClusterClass · 0.85
MockConnectionClass · 0.85
FakeTimeClass · 0.85

Tested by

no test coverage detected