Commit 5485f0e3 by Tim Babych

check note.id to be str

parent 067c15dc
......@@ -93,6 +93,7 @@ class AnnotationListViewTests(BaseAnnotationViewTests):
annotation = response.data.copy()
self.assertIn('id', annotation)
self.assertEqual(type(annotation['id']), str)
del annotation['id']
del annotation['updated']
del annotation['created']
......@@ -243,6 +244,7 @@ class AnnotationDetailViewTests(BaseAnnotationViewTests):
self.assertEqual(response.status_code, status.HTTP_200_OK)
annotation = response.data
self.assertEqual(type(annotation['id']), str)
del annotation['id']
del annotation['updated']
del annotation['created']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment