From 0e4ccdd022cef2c6056ad5e3dcedb0627d31a796 Mon Sep 17 00:00:00 2001 From: bryan brancotte Date: Fri, 26 Jan 2024 10:22:14 +0100 Subject: [PATCH] Update test_widgets.py Check list are now accepted --- tests/test_widgets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_widgets.py b/tests/test_widgets.py index e011756a6..930da8ee2 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -310,6 +310,10 @@ class NumberCSVWidget(BaseCSVWidget, NumberInput): result = w.value_from_datadict(data, {}, 'price') self.assertEqual(result, ['1', '2']) + data = {'price': ['1', '2']} + result = w.value_from_datadict(data, {}, 'price') + self.assertEqual(result, ['1', '2']) + data = {'price': '1,,2'} result = w.value_from_datadict(data, {}, 'price') self.assertEqual(result, ['1', '', '2'])