Skip to content

Commit

Permalink
Improve mapbox tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed May 29, 2024
1 parent 9a650e6 commit c6c3b3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions test_elasticsearch/test_async/test_server/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,7 @@ async def test_errors_are_reported_correctly(self, async_client):
assert "42" == error["index"]["_id"]
assert "i" == error["index"]["_index"]
print(error["index"]["error"])
assert error["index"]["error"]["type"] in [
"mapper_parsing_exception",
# Elasticsearch 8.8+: https://github.com/elastic/elasticsearch/pull/92646
"document_parsing_exception",
]
assert error["index"]["error"]["type"] == "document_parsing_exception"

async def test_error_is_raised(self, async_client):
await async_client.indices.create(
Expand Down
6 changes: 1 addition & 5 deletions test_elasticsearch/test_server/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,7 @@ def test_errors_are_reported_correctly(sync_client):
assert "42" == error["index"]["_id"]
assert "i" == error["index"]["_index"]
print(error["index"]["error"])
assert error["index"]["error"]["type"] in [
"mapper_parsing_exception",
# Elasticsearch 8.8+: https://github.com/elastic/elasticsearch/pull/92646
"document_parsing_exception",
]
assert error["index"]["error"]["type"] == "document_parsing_exception"


def test_error_is_raised(sync_client):
Expand Down

0 comments on commit c6c3b3e

Please sign in to comment.