mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
validate move before migration
This commit is contained in:
parent
1e5a418191
commit
0ed001c56e
2 changed files with 8 additions and 0 deletions
|
|
@ -141,6 +141,8 @@ class TestMigrateArchiveFiles(DirectoriesMixin, TestMigrations):
|
|||
archive_checksum = hashlib.md5(f.read()).hexdigest()
|
||||
self.assertEqual(archive_checksum, doc.archive_checksum)
|
||||
|
||||
self.assertEqual(Document.objects.filter(archive_checksum__isnull=False).count(), 4)
|
||||
|
||||
# this will raise errors when any inconsistencies remain after migration
|
||||
sanity_check()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue