(cls, name, session)
| 84 | |
| 85 | @classmethod |
| 86 | def from_session(cls, name, session): |
| 87 | instance = cls(name=name, hosts=session.hosts) |
| 88 | instance.cluster, instance.session = session.cluster, session |
| 89 | instance.setup_session() |
| 90 | return instance |
| 91 | |
| 92 | def setup(self): |
| 93 | """Set up the connection""" |
no test coverage detected