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

Method __init__

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

Source from the content-addressed store, hash-verified

74 is_shutdown = False
75
76 def __init__(self):
77 self.metadata = MockMetadata()
78 self.added_hosts = []
79 self.removed_hosts = []
80 self.scheduler = Mock(spec=_Scheduler)
81 self.executor = Mock(spec=ThreadPoolExecutor)
82 self.profile_manager.profiles[EXEC_PROFILE_DEFAULT] = ExecutionProfile(RoundRobinPolicy())
83 self.endpoint_factory = DefaultEndPointFactory().configure(self)
84
85 def add_host(self, endpoint, datacenter, rack, signal=False, refresh_nodes=True):
86 host = Host(endpoint, SimpleConvictionPolicy, datacenter, rack)

Callers

nothing calls this directly

Calls 5

ExecutionProfileClass · 0.90
RoundRobinPolicyClass · 0.90
MockMetadataClass · 0.85
configureMethod · 0.80

Tested by

no test coverage detected