mirror of
https://github.com/Hopiu/django.git
synced 2026-05-17 03:51:06 +00:00
Refs #31157 -- Added tests for display_for_field() with empty JSONField.
This commit is contained in:
parent
2e0f04507b
commit
675ce4dd35
1 changed files with 3 additions and 0 deletions
|
|
@ -176,6 +176,9 @@ class UtilsTests(SimpleTestCase):
|
|||
display_value = display_for_field(None, models.FloatField(), self.empty_value)
|
||||
self.assertEqual(display_value, self.empty_value)
|
||||
|
||||
display_value = display_for_field(None, models.JSONField(), self.empty_value)
|
||||
self.assertEqual(display_value, self.empty_value)
|
||||
|
||||
def test_number_formats_display_for_field(self):
|
||||
display_value = display_for_field(12345.6789, models.FloatField(), self.empty_value)
|
||||
self.assertEqual(display_value, '12345.6789')
|
||||
|
|
|
|||
Loading…
Reference in a new issue