A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
refactor migration tests to allow testing for exceptions while migrating
jonaswinkler1ba89ddd0915
diff --git a/src/documents/tests/utils.py b/src/documents/tests/utils.pyindex b9be25d70..da8d3d429 100644--- a/src/documents/tests/utils.py+++ b/src/documents/tests/utils.py@@ -92,6 +92,7 @@ class TestMigrations(TransactionTestCase):migrate_from = Nonemigrate_to = None+ auto_migrate = Truedef setUp(self):super(TestMigrations, self).setUp()@@ -108,6 +109,12 @@ class TestMigrations(TransactionTestCase):self.setUpBeforeMigration(old_apps)+ self.apps = old_apps++ if self.auto_migrate:+ self.performMigration()++ def performMigration(self):# Run the migration to testexecutor = MigrationExecutor(connection)executor.loader.build_graph() # reload.