Skip to content

Commit

Permalink
Error replicated in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Iaquinto committed May 19, 2015
1 parent 61e3609 commit d375c3e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions eve_elastic/test/test_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,11 @@ def test_elastic_sort_by_score_if_there_is_query(self):
cursor = self.app.data.find('items', req, None)
self.assertEqual(2, cursor.count())
self.assertEqual('foo', cursor[0]['uri'])

def test_elastic_find_default_sort_no_mapping(self):
self.app.data.es.indices.delete_mapping(INDEX, '_all')
with self.app.test_request_context('/items/'):
req = parse_request('items')
req.args = {}
cursor = self.app.data.find('items', req, None)
self.assertEqual(0, cursor.count())

0 comments on commit d375c3e

Please sign in to comment.