fix: use span element for readonly money field widget render
This commit is contained in:
parent
84ab931081
commit
6515a0a224
2 changed files with 4 additions and 4 deletions
|
@ -131,11 +131,11 @@ class TestWuttaMoneyInputWidget(WebTestCase):
|
|||
|
||||
# readonly is rendered per app convention
|
||||
result = widget.serialize(field, str(amount), readonly=True)
|
||||
self.assertEqual(result, '$12.34')
|
||||
self.assertEqual(result, '<span>$12.34</span>')
|
||||
|
||||
# readonly w/ null value
|
||||
result = widget.serialize(field, None, readonly=True)
|
||||
self.assertEqual(result, '')
|
||||
self.assertEqual(result, '<span></span>')
|
||||
|
||||
|
||||
class TestFileDownloadWidget(WebTestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue