From e4f61b3ad85b602ed728860311269ff0b4a7a374 Mon Sep 17 00:00:00 2001 From: Michael Price Date: Mon, 5 Mar 2018 05:42:52 -0400 Subject: [PATCH] Fix document search tests. Signed-off-by: Michael Price --- mayan/apps/documents/tests/test_search.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mayan/apps/documents/tests/test_search.py b/mayan/apps/documents/tests/test_search.py index 0a9a2c4edd..a0ec21d952 100644 --- a/mayan/apps/documents/tests/test_search.py +++ b/mayan/apps/documents/tests/test_search.py @@ -37,19 +37,19 @@ class DocumentSearchTestCase(BaseTestCase): ) def test_document_page_search_no_access(self): - model_list, result_set, elapsed_time = self._perform_document_page_search() - self.assertFalse(self.document.pages.first() in model_list) + queryset, elapsed_time = self._perform_document_page_search() + self.assertFalse(self.document.pages.first() in queryset) def test_document_page_search_with_access(self): self.grant_access(permission=permission_document_view, obj=self.document) - model_list, result_set, elapsed_time = self._perform_document_page_search() - self.assertTrue(self.document.pages.first() in model_list) + queryset, elapsed_time = self._perform_document_page_search() + self.assertTrue(self.document.pages.first() in queryset) def test_document_search_no_access(self): - model_list, result_set, elapsed_time = self._perform_document_search() - self.assertFalse(self.document in model_list) + queryset, elapsed_time = self._perform_document_search() + self.assertFalse(self.document in queryset) def test_document_search_with_access(self): self.grant_access(permission=permission_document_view, obj=self.document) - model_list, result_set, elapsed_time = self._perform_document_search() - self.assertTrue(self.document in model_list) + queryset, elapsed_time = self._perform_document_search() + self.assertTrue(self.document in queryset)