Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update integration tests
Jakub Draganekd2e676ff8362
diff --git a/saleor/search/backends/test_newelastic.py b/saleor/search/backends/test_newelastic.pyindex 8816e7145b..9b1e1c5594 100644--- a/saleor/search/backends/test_newelastic.py+++ b/saleor/search/backends/test_newelastic.py@@ -18,7 +18,7 @@ def es_search_query(search_phrase):'bool': {'must': [{'multi_match': {- 'fields': ['name', 'description'],+ 'fields': FIELDS,'query': 'How fortunate man with none'}}],@@ -28,7 +28,7 @@ def es_search_query(search_phrase):}}, {'match': {- 'content_type': 'product.Product'+ 'content_type': CONTENT_TYPE}}]}diff --git a/tests/cassettes/test_new_search_with_empty_results.yaml b/tests/cassettes/test_new_search_with_empty_results.yamlindex a0bd86b05e..fa32dfc2bc 100644--- a/tests/cassettes/test_new_search_with_empty_results.yaml+++ b/tests/cassettes/test_new_search_with_empty_results.yaml@@ -1,15 +1,15 @@interactions:- request:- body: '{"query": {"bool": {"must": [{"multi_match": {"query": "foo", "fields":- ["name", "description"]}}], "filter": [{"match": {"content_type": "product.Product"}}]}},- "_source": ["pk"]}'+ body: '{"query": {"bool": {"filter": [{"term": {"is_published_filter": true}},+ {"match": {"content_type": "product.Product"}}], "must": [{"multi_match": {"query":+ "foo", "fields": ["name", "description"]}}]}}, "_source": ["pk"]}'headers:connection: [keep-alive]content-type: [application/json]method: GETuri: http://search:9200/storefront__product_product/_searchresponse:- body: {string: '{"took":11,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}'}+ body: {string: '{"took":15,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}'}headers:content-length: ['123']content-type: [application/json; charset=UTF-8]diff --git a/tests/cassettes/test_new_search_with_results.yaml b/tests/cassettes/test_new_search_with_results.yamlindex 322a98b332..83c6645af4 100644--- a/tests/cassettes/test_new_search_with_results.yaml+++ b/tests/cassettes/test_new_search_with_results.yaml@@ -1,17 +1,17 @@interactions:- request:- body: '{"query": {"bool": {"must": [{"multi_match": {"query": "group", "fields":- ["name", "description"]}}], "filter": [{"match": {"content_type": "product.Product"}}]}},- "_source": ["pk"]}'+ body: '{"query": {"bool": {"filter": [{"term": {"is_published_filter": true}},+ {"match": {"content_type": "product.Product"}}], "must": [{"multi_match": {"query":+ "group", "fields": ["name", "description"]}}]}}, "_source": ["pk"]}'headers:connection: [keep-alive]content-type: [application/json]method: GETuri: http://search:9200/storefront__product_product/_searchresponse:- body: {string: '{"took":10,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":3.7124774,"hits":[{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:32","_score":3.7124774,"_source":{"pk":"32"}}]}}'}+ body: {string: '{"took":4,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":3.7124774,"hits":[{"_index":"storefront__product_product","_type":"product_product","_id":"product_product:32","_score":3.7124774,"_source":{"pk":"32"}}]}}'}headers:- content-length: ['262']+ content-length: ['261']content-type: [application/json; charset=UTF-8]status: {code: 200, message: OK}version: 1