0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Fixes Elasticsearch 6 tests.

This commit is contained in:
Bertrand Bordage 2018-06-20 15:24:08 +02:00
parent 6bdb4cf97f
commit 3d3a25a8e1

View File

@ -540,7 +540,8 @@ class TestElasticsearch6Mapping(TestCase):
'name': {'type': 'text', 'copy_to': '_all_text'},
'slug_filter': {'type': 'keyword'},
},
}
},
'tags_filter': {'type': 'keyword'}
}
}
}
@ -573,7 +574,8 @@ class TestElasticsearch6Mapping(TestCase):
],
'publication_date_filter': datetime.date(1954, 7, 29),
'number_of_pages_filter': 423,
'tags': []
'tags': [],
'tags_filter': []
}
self.assertDictEqual(document, expected_result)
@ -642,7 +644,8 @@ class TestElasticsearch6MappingInheritance(TestCase):
'name': {'type': 'text', 'copy_to': '_all_text'},
'slug_filter': {'type': 'keyword'},
},
}
},
'tags_filter': {'type': 'keyword'}
}
}
}
@ -702,7 +705,8 @@ class TestElasticsearch6MappingInheritance(TestCase):
],
'publication_date_filter': datetime.date(1954, 7, 29),
'number_of_pages_filter': 423,
'tags': []
'tags': [],
'tags_filter': []
}
self.assertDictEqual(document, expected_result)