From 19ee159a8a2d73b24b0b3778b4092bedda92df70 Mon Sep 17 00:00:00 2001 From: stumpylog <797416+stumpylog@users.noreply.github.com> Date: Fri, 20 Nov 2026 14:09:20 -0800 Subject: [PATCH] Chore: trim the OCR template export test to counts and restore --- src/documents/tests/test_management_exporter.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/documents/tests/test_management_exporter.py b/src/documents/tests/test_management_exporter.py index 61dd480568..2814f53ce1 100644 --- a/src/documents/tests/test_management_exporter.py +++ b/src/documents/tests/test_management_exporter.py @@ -428,7 +428,7 @@ class TestExportImport( - The data is exported, the templates are deleted, and the export is imported again THEN: - - The template and its zones are restored with their relations + - The template and its zones are restored """ shutil.rmtree(Path(self.dirs.media_dir) / "documents") install_document_samples(Path(self.dirs.media_dir) / "documents") @@ -464,17 +464,10 @@ class TestExportImport( ) imported = OcrTemplate.objects.get(pk=template.pk) - self.assertEqual(imported.owner_id, self.user.pk) - self.assertEqual(imported.sample_document_id, self.d1.pk) - self.assertEqual(imported.combine_formats, {str(self.cf1.pk): "{Number}"}) self.assertEqual( list(imported.zones.order_by("pk").values_list("pk", flat=True)), [cf_zone.pk, title_zone.pk], ) - self.assertEqual( - OcrTemplateZone.objects.get(pk=cf_zone.pk).custom_field_id, - self.cf1.pk, - ) def test_update_export_changed_time(self) -> None: shutil.rmtree(Path(self.dirs.media_dir) / "documents")