[TD-1587]<test> add python restful example
This commit is contained in:
parent
1c3b799d08
commit
0f5d866f9b
|
@ -41,7 +41,7 @@ class RestfulInsert:
|
|||
requests.post(self.url, data, headers = self.header)
|
||||
|
||||
def run(self):
|
||||
data = "drop database if exist test"
|
||||
data = "drop database if exists test"
|
||||
requests.post(self.url, data, headers = self.header)
|
||||
data = "create database test keep 7300"
|
||||
requests.post(self.url, data, headers = self.header)
|
||||
|
@ -57,7 +57,4 @@ class RestfulInsert:
|
|||
|
||||
ri = RestfulInsert()
|
||||
ri.init()
|
||||
ri.run()
|
||||
|
||||
|
||||
|
||||
ri.run()
|
Loading…
Reference in New Issue