Skip to content

Commit

Permalink
Fix coverage miss when running tests under ES 7
Browse files Browse the repository at this point in the history
  • Loading branch information
robertknight committed Nov 11, 2024
1 parent 0b191cc commit 7c6b56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h/search/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _parse_aggregation_results(self, aggregations):
@staticmethod
def _get_total_hits(response):
total = response["hits"]["total"]
if isinstance(total, int):
if isinstance(total, int): # pragma: nocover
# ES 6.x
return total

Expand Down

0 comments on commit 7c6b56d

Please sign in to comment.