예제 #1
0
 def list(self, request):
     return Response(schemas.extract_schema())
예제 #2
0
파일: api.py 프로젝트: mattstibbs/opal
 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])