Example #1
0
 def list(self, request):
     return Response(schemas.extract_schema())
Example #2
0
 def list(self, request):
     return json_response(schemas.extract_schema())
Example #3
0
 def test_list_records(self, tagging, subrecords):
     subrecords.return_value = [Colour]
     tagging.return_value = []
     self.assertEqual(tagging_serialized, schemas.extract_schema()[0])
     self.assertEqual(colour_serialized, schemas.extract_schema()[1])
Example #4
0
 def test_list_records(self, tagging, subrecords):
     subrecords.return_value = [Colour]
     tagging.return_value = []
     self.assertEqual(tagging_serialized, schemas.extract_schema()[0])
     self.assertEqual(colour_serialized, schemas.extract_schema()[1])