Skip to content

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

Refactor minor style issues

Jakub Draganek4b4677d87665
diff --git a/saleor/search/backends/test_newelastic.py b/saleor/search/backends/test_newelastic.py
index 392254432b..19cf37bf1b 100644
--- a/saleor/search/backends/test_newelastic.py
+++ b/saleor/search/backends/test_newelastic.py
@@ -1,8 +1,6 @@
from __future__ import unicode_literals
-
from . import newelastic
-
PHRASE = 'How fortunate man with none'
FIELDS = ['name', 'description']
INDEX = 'storefront'
@@ -28,5 +26,4 @@ QUERY = {
def test_storefront_product_search_query_syntax():
- products = newelastic.get_search_query(PHRASE)
- assert products.to_dict() == QUERY
+ assert QUERY == newelastic.get_search_query(PHRASE).to_dict()