Update document parsing app tests to work with Python 3.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -16,12 +16,12 @@ class DocumentAutoParsingTestCase(GenericDocumentTestCase):
|
||||
self._create_document_type()
|
||||
self.document = self.upload_document()
|
||||
with self.assertRaises(StopIteration):
|
||||
self.document.latest_version.content().next()
|
||||
next(self.document.latest_version.content())
|
||||
|
||||
@override_settings(DOCUMENT_PARSING_AUTO_PARSING=True)
|
||||
def test_enabled_auto_parsing(self):
|
||||
self._create_document_type()
|
||||
self.document = self.upload_document()
|
||||
self.assertTrue(
|
||||
TEST_DOCUMENT_CONTENT in self.document.content().next()
|
||||
TEST_DOCUMENT_CONTENT in next(self.document.content())
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user