Commit 456c0f5d authored by Jérome Perrin's avatar Jérome Perrin

make sure render_dict on float fields works as expected when using "," as

decimal separator


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 79dc913e
......@@ -140,6 +140,12 @@ class TestFloatField(ERP5TypeTestCase):
format='0.0000',
type='float'),
self.field.render_dict(0.12345))
# this also work when using , as decimal separator
self.field.values['input_style'] = '-1.234,5'
self.assertEquals(dict(query=0.12345,
format='0.0000',
type='float'),
self.field.render_dict(0.12345))
def test_render_string_value(self):
self.field.values['precision'] = 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment