Update testFengzhuang.py

This commit is contained in:
liwanlei
2017-08-09 17:09:48 +08:00
committed by GitHub
parent 9787b1d5e4
commit e1abe8b5f1

View File

@@ -18,11 +18,11 @@ class TestApi(object):
response=reques.post(self.url,self.parem)
elif self.fangshi=="GET":
self.parem = {'key': self.key, 'info': self.connent}
response = reques.post(self.url, self.parem)
response = reques.get(self.url, self.parem)
return response
def getcode(self):
code=self.testapi()['code']
return code
def getJson(self):
json_data = self.testapi()
return json_data
return json_data