def test_it_can_use_configured_url(self): with self.app.app_context(): self.app.config['ELASTICSEARCH_URL'] = 'http://localhost:9292' elastic = Elastic(self.app) elastic.init_index(self.app)