From 83a4368eef7d99bce47f7ab402bfd3feb8e94c8b Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 2 Apr 2019 13:39:00 -0400 Subject: [PATCH] Simplify document indexing test Signed-off-by: Roberto Rosario --- mayan/apps/document_indexing/tests/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/document_indexing/tests/test_models.py b/mayan/apps/document_indexing/tests/test_models.py index acaff8e9a4..7a5bf488e3 100644 --- a/mayan/apps/document_indexing/tests/test_models.py +++ b/mayan/apps/document_indexing/tests/test_models.py @@ -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)