Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed May 26, 2017
1 parent 1b6f593 commit 3400b9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ def test_search_does_not_fail(self):
headers=self.headers)
assert len(resp.json["data"]) == 1

resp = self.app.get("/buckets/bid/collections/cid/search",
headers=self.headers)
results = resp.json
assert len(results["hits"]["hits"]) == 0

def test_record_creation_does_not_fail(self):
self.app.post_json("/buckets/bid/collections/cid/records",
{"data": {"after": "indexing"}},
Expand Down

0 comments on commit 3400b9a

Please sign in to comment.