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:
@@ -12,7 +12,7 @@
|
|||||||
YAML validation of arguments.
|
YAML validation of arguments.
|
||||||
* Add stricted error checking to the crop transformation.
|
* Add stricted error checking to the crop transformation.
|
||||||
* Update compressed files class module to work with Python 3.
|
* Update compressed files class module to work with Python 3.
|
||||||
|
* Update document parsing app tests to work with Python 3.
|
||||||
|
|
||||||
3.1.4 (2018-10-4)
|
3.1.4 (2018-10-4)
|
||||||
=================
|
=================
|
||||||
|
|||||||
@@ -16,12 +16,12 @@ class DocumentAutoParsingTestCase(GenericDocumentTestCase):
|
|||||||
self._create_document_type()
|
self._create_document_type()
|
||||||
self.document = self.upload_document()
|
self.document = self.upload_document()
|
||||||
with self.assertRaises(StopIteration):
|
with self.assertRaises(StopIteration):
|
||||||
self.document.latest_version.content().next()
|
next(self.document.latest_version.content())
|
||||||
|
|
||||||
@override_settings(DOCUMENT_PARSING_AUTO_PARSING=True)
|
@override_settings(DOCUMENT_PARSING_AUTO_PARSING=True)
|
||||||
def test_enabled_auto_parsing(self):
|
def test_enabled_auto_parsing(self):
|
||||||
self._create_document_type()
|
self._create_document_type()
|
||||||
self.document = self.upload_document()
|
self.document = self.upload_document()
|
||||||
self.assertTrue(
|
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