How to use the elasticsearch2.connection_pool.DummyConnectionPool function in elasticsearch2

To help you get started, we’ve selected a few elasticsearch2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elastic / elasticsearch-py / test_elasticsearch2 / test_transport.py View on Github external
def test_single_connection_uses_dummy_connection_pool(self):
        t = Transport([{}])
        self.assertIsInstance(t.connection_pool, DummyConnectionPool)
        t = Transport([{'host': 'localhost'}])
        self.assertIsInstance(t.connection_pool, DummyConnectionPool)
github elastic / elasticsearch-py / test_elasticsearch2 / test_transport.py View on Github external
def test_single_connection_uses_dummy_connection_pool(self):
        t = Transport([{}])
        self.assertIsInstance(t.connection_pool, DummyConnectionPool)
        t = Transport([{'host': 'localhost'}])
        self.assertIsInstance(t.connection_pool, DummyConnectionPool)