Skip to content

Commit

Permalink
Update test_widgets.py
Browse files Browse the repository at this point in the history
Check list are now accepted
  • Loading branch information
bryan-brancotte authored Jan 26, 2024
1 parent 4c4d3f6 commit 0e4ccdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 0e4ccdd

Please sign in to comment.