Пример #1
0
 def list(self, request):
     return Response(schemas.extract_schema())
Пример #2
0
 def list(self, request):
     return json_response(schemas.extract_schema())
Пример #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])
Пример #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])