mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 19:10:12 +03:00
Fixed tests
This commit is contained in:
parent
a1deb5eac7
commit
ff55b71b83
|
@ -130,12 +130,12 @@ class TestRootView(TestCase):
|
||||||
'max_length': 100,
|
'max_length': 100,
|
||||||
'read_only': False,
|
'read_only': False,
|
||||||
'required': True,
|
'required': True,
|
||||||
'type': 'String',
|
'type': 'CharField',
|
||||||
},
|
},
|
||||||
'id': {
|
'id': {
|
||||||
'read_only': True,
|
'read_only': True,
|
||||||
'required': False,
|
'required': False,
|
||||||
'type': 'Integer',
|
'type': 'IntegerField',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||||
|
@ -264,12 +264,12 @@ class TestInstanceView(TestCase):
|
||||||
'max_length': 100,
|
'max_length': 100,
|
||||||
'read_only': False,
|
'read_only': False,
|
||||||
'required': True,
|
'required': True,
|
||||||
'type': 'String',
|
'type': 'CharField',
|
||||||
},
|
},
|
||||||
'id': {
|
'id': {
|
||||||
'read_only': True,
|
'read_only': True,
|
||||||
'required': False,
|
'required': False,
|
||||||
'type': 'Integer',
|
'type': 'IntegerField',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user