fix: serialize None to null, for ObjectRef schema type
not sure how this didn't come up until now..anyway hopefully it's the right thing but we'll see
This commit is contained in:
parent
634c1b1fe5
commit
19cf6cf03a
2 changed files with 8 additions and 4 deletions
|
|
@ -257,6 +257,8 @@ class TestObjectRef(DataTestCase):
|
|||
typ = mod.ObjectRef(self.request)
|
||||
value = typ.serialize(node, colander.null)
|
||||
self.assertIs(value, colander.null)
|
||||
value = typ.serialize(node, None)
|
||||
self.assertIs(value, colander.null)
|
||||
|
||||
# model instance
|
||||
person = model.Person(full_name="Betty Boop")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue