Tests: Fix failing tests

Fix failing tests in the OCR and parsing apps.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-11-27 17:17:07 -04:00
parent 67e79d0e19
commit 2ca38c20b0
2 changed files with 7 additions and 16 deletions

View File

@@ -15,6 +15,7 @@ class DocumentAutoParsingTestCase(GenericDocumentTestCase):
def test_disable_auto_parsing(self):
self._create_document_type()
self.document = self.upload_document()
with self.assertRaises(StopIteration):
next(self.document.latest_version.content())
@@ -23,5 +24,5 @@ class DocumentAutoParsingTestCase(GenericDocumentTestCase):
self._create_document_type()
self.document = self.upload_document()
self.assertTrue(
TEST_DOCUMENT_CONTENT in next(self.document.content())
TEST_DOCUMENT_CONTENT in self.document.content
)