mirror of
https://github.com/django/django.git
synced 2025-11-19 19:24:46 +00:00
Refs #35381 -- Made JSONNull deconstruct using convenient import path.
This commit is contained in:
parent
a1ce852e52
commit
66b5a6de78
2 changed files with 9 additions and 0 deletions
|
|
@ -1265,6 +1265,13 @@ class JSONNullTests(TestCase):
|
|||
def test_repr(self):
|
||||
self.assertEqual(repr(JSONNull()), "JSONNull()")
|
||||
|
||||
def test_deconstruct(self):
|
||||
jsonnull = JSONNull()
|
||||
path, args, kwargs = jsonnull.deconstruct()
|
||||
self.assertEqual(path, "django.db.models.JSONNull")
|
||||
self.assertEqual(args, ())
|
||||
self.assertEqual(kwargs, {})
|
||||
|
||||
def test_save_load(self):
|
||||
obj = JSONModel(value=JSONNull())
|
||||
obj.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue