Fix tests

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-10-09 21:09:36 -04:00
parent cf697d3ea7
commit a4a12b0cfe
2 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ class OCRAPIViewTestCase(
self.assertTrue(
hasattr(
self.test_document.pages.first().content_type, 'ocr_content'
self.test_document.pages.first().content_object, 'ocr_content'
)
)

View File

@@ -19,7 +19,7 @@ class DocumentOCRTestCase(DocumentTestMixin, BaseTestCase):
_skip_file_descriptor_test = True
def test_ocr_language_backends_end(self):
content = self.test_document.pages.first().get_ocr_content()
content = self.test_document.pages.first().content_object.ocr_content.content
self.assertTrue(TEST_DOCUMENT_CONTENT in content)
@@ -40,7 +40,7 @@ class GermanOCRSupportTestCase(DocumentTestMixin, BaseTestCase):
)
def test_ocr_language_backends_end(self):
content = self.test_document.pages.first().ocr_content.content
content = self.test_document.pages.first().content_object.ocr_content.content
self.assertTrue(
TEST_DOCUMENT_CONTENT_DEU_1 in content