Exemplo n.º 1
0
 def setUp(self):
     with open("test/test_sample.json") as f:
         self.raw_api = json.load(f)
         self.api = genutils.APIDescription(self.raw_api)
         self.raw_class_1 = self.raw_api["classes"][0]
         self.class_1 = genutils.APIClass(self.raw_class_1, self.api)
         self.raw_class_2 = self.raw_api["classes"][1]
         self.class_2 = genutils.APIClass(self.raw_class_2, self.api)
         self.raw_inner = self.raw_class_1["types"][0]
         self.inner = genutils.APIClass(self.raw_inner, self.api)
Exemplo n.º 2
0
 def setUp(self):
     with open("test/test_sample.json") as f:
         self.raw_api = json.load(f)
         self.api = genutils.APIDescription(self.raw_api)
         self.raw_class_1 = self.raw_api["classes"][0]
         self.class_1 = genutils.APIClass(self.raw_class_1, self.api)
         self.raw_ctor_1 = self.raw_class_1["constructors"][0]
         self.ctor_1 = genutils.APIConstructor(self.raw_ctor_1,
                                               self.class_1, self.api)
Exemplo n.º 3
0
 def setUp(self):
     with open("test/test_sample.json") as f:
         self.raw_api = json.load(f)
         self.api = genutils.APIDescription(self.raw_api)
         self.raw_class_1 = self.raw_api["classes"][0]
         self.class_1 = genutils.APIClass(self.raw_class_1, self.api)
         self.raw_field_1 = self.raw_api["fields"][0]
         self.field_1 = genutils.APIField(self.raw_field_1, self.api)
         self.raw_field_2 = self.raw_class_1["fields"][0]
         self.field_2 = genutils.APIField(self.raw_field_2, self.api)
Exemplo n.º 4
0
 def setUp(self):
     with open("test/test_sample.json") as f:
         self.raw_api = json.load(f)
         self.api = genutils.APIDescription(self.raw_api)
         self.raw_class_1 = self.raw_api["classes"][0]
         self.class_1 = genutils.APIClass(self.raw_class_1, self.api)
         self.raw_service_1 = self.raw_class_1["services"][0]
         self.service_1 = genutils.APIService(self.raw_service_1,
                                              self.class_1, self.api)
         self.raw_service_2 = self.raw_class_1["services"][1]
         self.service_2 = genutils.APIService(self.raw_service_2,
                                              self.class_1, self.api)
         self.raw_service_3 = self.raw_api["services"][0]
         self.service_3 = genutils.APIService(self.raw_service_3, None,
                                              self.api)