Simplify document indexing test

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-02 13:39:00 -04:00
parent b6e0de01f3
commit 83a4368eef

View File

@@ -79,7 +79,7 @@ class IndexTestCase(IndexTemplateTestMixin, DocumentTestMixin, BaseTestCase):
self._create_document()
self.assertEqual(
[instance.value for instance in IndexInstanceNode.objects.all()],
list(IndexInstanceNode.objects.values_list('value', flat=True)),
[
'', force_text(self.test_document.date_added.year),
force_text(self.test_document.date_added.month)