def list(self, request): return Response(schemas.extract_schema())
def list(self, request): return json_response(schemas.extract_schema())
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])