diff --git a/test/test_elastic_search.py b/test/test_elastic_search.py index bbe9236f3b3dcd9d05781b45165e08e18a76eb81_dGVzdC90ZXN0X2VsYXN0aWNfc2VhcmNoLnB5..cab90345e584cbc333c8ee2db82b6cccff006a9e_dGVzdC90ZXN0X2VsYXN0aWNfc2VhcmNoLnB5 100644 --- a/test/test_elastic_search.py +++ b/test/test_elastic_search.py @@ -44,8 +44,7 @@ def test_indexable_types(self): with self.admin_access.repo_cnx() as cnx: self.assertNotEquals( - len(indexable_types(cnx.repo)), - 0) + len(indexable_types(cnx.vreg.schema)), 0) @patch('elasticsearch.client.Elasticsearch.index', unsafe=True) @patch('elasticsearch.client.Elasticsearch.bulk', unsafe=True) @@ -89,7 +88,7 @@ sys.stdout = sys.__stdout__ with self.admin_access.repo_cnx() as cnx: self.assert_(cnx.execute('Any X WHERE X is %(etype)s' % - {'etype': indexable_types(cnx.repo)[0]})) + {'etype': indexable_types(cnx.vreg.schema)[0]})) # TODO - put this somewhere where it tests on the first get_connection #create.assert_called_with(ignore=400, # index='unittest_index_name',