From 1afff1fec8bd6442310929636a1036bd4049eb3c Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 12 Nov 2024 23:14:11 -0800 Subject: [PATCH] Fix templating test --- src/documents/tests/test_file_handling.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/documents/tests/test_file_handling.py b/src/documents/tests/test_file_handling.py index 476068a51..688069db0 100644 --- a/src/documents/tests/test_file_handling.py +++ b/src/documents/tests/test_file_handling.py @@ -1373,13 +1373,18 @@ class TestFilenameGeneration(DirectoriesMixin, TestCase): cf2 = CustomField.objects.create( name="Select Field", data_type=CustomField.FieldDataType.SELECT, - extra_data={"select_options": ["ChoiceOne", "ChoiceTwo"]}, + extra_data={ + "select_options": [ + {"label": "ChoiceOne", "id": "abc=123"}, + {"label": "ChoiceTwo", "id": "def-456"}, + ], + }, ) cfi1 = CustomFieldInstance.objects.create( document=doc_a, field=cf2, - value_select=0, + value_select="abc=123", ) cfi = CustomFieldInstance.objects.create(