Commit 2d8995c4 authored by 刘丙寅's avatar 刘丙寅

更新代码

parent a63bbe2c
......@@ -5,8 +5,10 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PackageRequirementsSettings">
<option name="requirementsPath" value="" />
</component>
<component name="TestRunnerService">
<option name="projectConfiguration" value="Twisted Trial" />
<option name="PROJECT_TEST_RUNNER" value="Twisted Trial" />
<option name="PROJECT_TEST_RUNNER" value="Unittests" />
</component>
</module>
\ No newline at end of file
This diff is collapsed.
2019-09-19 19:01:28+0800 [-] Log opened.
......@@ -17,7 +17,6 @@ class Case(unittest.TestCase):
my_news = params.my_news
unread = params.unread
likelist = params.likelist
socketaddress = params.socketaddress
new_info = params.new_info
notice = params.notice
upload_token = params.upload_token
......@@ -53,13 +52,6 @@ class Case(unittest.TestCase):
result = self.s.get(url=url)
getMethod.getmethod(p,result)
#通用接口
def test_04(self):
'获取socket地址'
p = "获取socket地址"
url = self.uri + self.socketaddress
result = self.s.get(url=url)
getMethod.getmethod(p,result)
# 通用接口
def test_05(self):
......@@ -86,7 +78,7 @@ class Case(unittest.TestCase):
body = {
"token_type":1
}
result = self.s.post(url=url,data=body)
result = self.s.post(url=url, data=body)
getMethod.getmethod(p,result)
\ No newline at end of file
......@@ -93,14 +93,15 @@ class Case(unittest.TestCase):
result = self.s.post(url=url , data=body)
getMethod.getmethod(p,result)
def test_07(self):
'画报搜索'
p = "画报搜索"
if self.uri == self.test_uri:
name = "name=aaa"
if self.uri == self.master_uri:
name = "name=明星"
url = self.uri + self.pictorial_search + "?" + name
name = "明星"
url = self.uri + self.pictorial_search + "?name=" + name
result = self.s.get(url=url)
getMethod.getmethod(p,result)
......
......@@ -38,8 +38,6 @@ unread = "/api/v1/message/unread?type=0"
# 点赞列表接口
likelist = "/api/v1/message/like"
# 获取socket地址
socketaddress = "/api/v1/user/socket"
# 获取最新通知信息
new_info = "/api/v1/push/newest/info"
......@@ -79,7 +77,7 @@ pictorial_card = "/api/v1/cards/pictorial?"
pictorial_and_topic = "/api/v1/pictorial/topic/add"
# 画报搜索
pictorial_search = "api/pictorial/search"
pictorial_search = "/api/pictorial/search"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment