mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +03:00
flake
This commit is contained in:
parent
85714ee3d9
commit
8fadf54ff9
|
@ -171,7 +171,7 @@ class TestRecursiveField:
|
||||||
one = RecursiveModel(name='one')
|
one = RecursiveModel(name='one')
|
||||||
two = RecursiveModel(name='two', parent=one)
|
two = RecursiveModel(name='two', parent=one)
|
||||||
|
|
||||||
#serialization
|
# serialization
|
||||||
representation = {
|
representation = {
|
||||||
'name': 'two',
|
'name': 'two',
|
||||||
'parent': {
|
'parent': {
|
||||||
|
@ -183,6 +183,5 @@ class TestRecursiveField:
|
||||||
s = RecursiveModelSerializer(two)
|
s = RecursiveModelSerializer(two)
|
||||||
assert s.data == representation
|
assert s.data == representation
|
||||||
|
|
||||||
#deserialization
|
# deserialization
|
||||||
self.deserialize(RecursiveModelSerializer, representation)
|
self.deserialize(RecursiveModelSerializer, representation)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user