Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix search url reverse in tests

Jakub Draganek21e8c16cfa53
diff --git a/tests/test_search.py b/tests/test_search.py
index 9d244eea27..d575437759 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -18,6 +18,7 @@ PHRASE_WITHOUT_RESULTS = 'foo'
@pytest.fixture(scope='function', autouse=True)
def es_autosync_disabled(settings):
''' Prevent ES index from being refreshed every time obj is saved '''
+ settings.ENABLE_SEARCH = True
settings.ELASTICSEARCH_DSL_AUTO_REFRESH = False
settings.ELASTICSEARCH_DSL_AUTOSYNC = False