Esempio n. 1
0
 def test_addProperty_dateList(self):
     """
     添加属性,数据类型为DATE,基数为list
     """
     self.test_add_graph_connect()
     code, res = GraphConnection().get_graph_connect()
     graph_id = res['data']['records'][0]['id']
     body = {"name": "date2", "data_type": "DATE", "cardinality": "LIST"}
     code, res = Schema.create_property(body, graph_id)
     self.assertEqual(code, 200, "响应状态码不正确")
     self.assertEqual(res['status'], 200, "添加属性状态码不正确")
Esempio n. 2
0
 def test_addProperty_blobSet(self):
     """
     添加属性,数据类型为BLOB,基数为set
     """
     self.test_add_graph_connect()
     code, res = GraphConnection().get_graph_connect()
     graph_id = res['data']['records'][0]['id']
     body = {"name": "blob3", "data_type": "BLOB", "cardinality": "SET"}
     code, res = Schema.create_property(body, graph_id)
     self.assertEqual(code, 200, "响应状态码不正确")
     self.assertEqual(res['status'], 200, "添加属性状态码不正确")
Esempio n. 3
0
 def test_addProperty_uuidSingle(self):
     """
     添加属性,数据类型为UUID,基数为single
     """
     self.test_add_graph_connect()
     code, res = GraphConnection().get_graph_connect()
     graph_id = res['data']['records'][0]['id']
     body = {"name": "uuid1", "data_type": "UUID", "cardinality": "SINGLE"}
     code, res = Schema.create_property(body, graph_id)
     self.assertEqual(code, 200, "响应状态码不正确")
     self.assertEqual(res['status'], 200, "添加属性状态码不正确")