[TD-1587]<test> add python restful example

This commit is contained in:
root 2020-09-24 11:14:40 +08:00
parent 1c3b799d08
commit 0f5d866f9b
1 changed files with 2 additions and 5 deletions

View File

@ -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()