Skip to content
Snippets Groups Projects
Commit cab90345e584 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

fix tests

parent bbe9236f3b3d
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment