diff --git a/tests/settings.py b/tests/settings.py index a38c212..ed4af86 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -119,15 +119,15 @@ 'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine' }) elif (5,) <= elasticsearch.__version__ <= (6,): - HAYSTACK_CONNECTIONS["elasticsearch"].update( + HAYSTACK_CONNECTIONS['default'].update( { - "ENGINE": "haystack.backends.elasticsearch5_backend.Elasticsearch5SearchEngine" + 'ENGINE': 'haystack.backends.elasticsearch5_backend.Elasticsearch5SearchEngine' } ) elif (7,) <= elasticsearch.__version__ <= (8,): - HAYSTACK_CONNECTIONS["elasticsearch"].update( + HAYSTACK_CONNECTIONS["default"].update( { - "ENGINE": "haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine" + 'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine' } )