Search: Fix failing tests
The SearchModel class no longer returns an elapsed time value. Update the tests and views that expect this removed variable. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -21,23 +21,23 @@ class DocumentSearchTestCase(DocumentTestMixin, BaseTestCase):
|
||||
)
|
||||
|
||||
def test_document_page_search_no_access(self):
|
||||
queryset, elapsed_time = self._perform_document_page_search()
|
||||
queryset = 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
|
||||
)
|
||||
queryset, elapsed_time = self._perform_document_page_search()
|
||||
queryset = self._perform_document_page_search()
|
||||
self.assertTrue(self.document.pages.first() in queryset)
|
||||
|
||||
def test_document_search_no_access(self):
|
||||
queryset, elapsed_time = self._perform_document_search()
|
||||
queryset = 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
|
||||
)
|
||||
queryset, elapsed_time = self._perform_document_search()
|
||||
queryset = self._perform_document_search()
|
||||
self.assertTrue(self.document in queryset)
|
||||
|
||||
Reference in New Issue
Block a user