Tests: Fix failing tests after last refactor

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2018-12-15 15:26:19 -04:00
parent 0e86f2ad8a
commit 77468a87be
22 changed files with 174 additions and 74 deletions

View File

@@ -17,8 +17,9 @@ class DocumentAutoParsingTestCase(GenericDocumentTestCase):
self._create_document_type()
self.document = self.upload_document()
with self.assertRaises(StopIteration):
next(self.document.latest_version.content())
self.assertTrue(
TEST_DOCUMENT_CONTENT not in self.document.get_content()
)
@override_settings(DOCUMENT_PARSING_AUTO_PARSING=True)
def test_enabled_auto_parsing(self):