Skip to content

Commit a1c33fa

Browse files
committed
Tests: update ES1 client version check message
The name of the Python module changed over time and this now matches the ES2 codebase behaviour of having the error message give you the exact package to install including the version.
1 parent 9ab6bfa commit a1c33fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_haystack/elasticsearch_tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def setup():
1717
raise ImportError
1818
from elasticsearch import Elasticsearch, ElasticsearchException
1919
except ImportError:
20-
log.error("elasticsearch-py not installed.", exc_info=True)
21-
raise unittest.SkipTest("elasticsearch-py not installed.")
20+
log.error("'elasticsearch>=1.0.0,<2.0.0' not installed.", exc_info=True)
21+
raise unittest.SkipTest("'elasticsearch>=1.0.0,<2.0.0' not installed.")
2222

2323
es = Elasticsearch(settings.HAYSTACK_CONNECTIONS['elasticsearch']['URL'])
2424
try:

0 commit comments

Comments
 (0)