Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
alpha-earth-interface
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘丙寅
alpha-earth-interface
Commits
2d8995c4
Commit
2d8995c4
authored
Sep 20, 2019
by
刘丙寅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
a63bbe2c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
16 deletions
+12
-16
alpha-earth-interface.iml
.idea/alpha-earth-interface.iml
+5
-2
workspace.xml
.idea/workspace.xml
+0
-0
_trial_marker
case/_trial_temp/_trial_marker
+0
-0
test.log
case/_trial_temp/test.log
+1
-0
case_news.py
case/case_news.py
+2
-9
case_pictorial.py
case/case_pictorial.py
+3
-2
params.py
param/params.py
+1
-3
result.html
report/result.html
+0
-0
No files found.
.idea/alpha-earth-interface.iml
View file @
2d8995c4
...
@@ -5,8 +5,10 @@
...
@@ -5,8 +5,10 @@
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</component>
<component
name=
"PackageRequirementsSettings"
>
<option
name=
"requirementsPath"
value=
""
/>
</component>
<component
name=
"TestRunnerService"
>
<component
name=
"TestRunnerService"
>
<option
name=
"projectConfiguration"
value=
"Twisted Trial"
/>
<option
name=
"PROJECT_TEST_RUNNER"
value=
"Unittests"
/>
<option
name=
"PROJECT_TEST_RUNNER"
value=
"Twisted Trial"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
.idea/workspace.xml
View file @
2d8995c4
This diff is collapsed.
Click to expand it.
case/_trial_temp/_trial_marker
0 → 100755
View file @
2d8995c4
case/_trial_temp/test.log
0 → 100644
View file @
2d8995c4
2019-09-19 19:01:28+0800 [-] Log opened.
case/case_news.py
View file @
2d8995c4
...
@@ -17,7 +17,6 @@ class Case(unittest.TestCase):
...
@@ -17,7 +17,6 @@ class Case(unittest.TestCase):
my_news
=
params
.
my_news
my_news
=
params
.
my_news
unread
=
params
.
unread
unread
=
params
.
unread
likelist
=
params
.
likelist
likelist
=
params
.
likelist
socketaddress
=
params
.
socketaddress
new_info
=
params
.
new_info
new_info
=
params
.
new_info
notice
=
params
.
notice
notice
=
params
.
notice
upload_token
=
params
.
upload_token
upload_token
=
params
.
upload_token
...
@@ -53,13 +52,6 @@ class Case(unittest.TestCase):
...
@@ -53,13 +52,6 @@ class Case(unittest.TestCase):
result
=
self
.
s
.
get
(
url
=
url
)
result
=
self
.
s
.
get
(
url
=
url
)
getMethod
.
getmethod
(
p
,
result
)
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
):
def
test_05
(
self
):
...
@@ -86,7 +78,7 @@ class Case(unittest.TestCase):
...
@@ -86,7 +78,7 @@ class Case(unittest.TestCase):
body
=
{
body
=
{
"token_type"
:
1
"token_type"
:
1
}
}
result
=
self
.
s
.
post
(
url
=
url
,
data
=
body
)
result
=
self
.
s
.
post
(
url
=
url
,
data
=
body
)
getMethod
.
getmethod
(
p
,
result
)
getMethod
.
getmethod
(
p
,
result
)
\ No newline at end of file
case/case_pictorial.py
View file @
2d8995c4
...
@@ -93,14 +93,15 @@ class Case(unittest.TestCase):
...
@@ -93,14 +93,15 @@ class Case(unittest.TestCase):
result
=
self
.
s
.
post
(
url
=
url
,
data
=
body
)
result
=
self
.
s
.
post
(
url
=
url
,
data
=
body
)
getMethod
.
getmethod
(
p
,
result
)
getMethod
.
getmethod
(
p
,
result
)
def
test_07
(
self
):
def
test_07
(
self
):
'画报搜索'
'画报搜索'
p
=
"画报搜索"
p
=
"画报搜索"
if
self
.
uri
==
self
.
test_uri
:
if
self
.
uri
==
self
.
test_uri
:
name
=
"name=aaa"
name
=
"name=aaa"
if
self
.
uri
==
self
.
master_uri
:
if
self
.
uri
==
self
.
master_uri
:
name
=
"
name=
明星"
name
=
"明星"
url
=
self
.
uri
+
self
.
pictorial_search
+
"?"
+
name
url
=
self
.
uri
+
self
.
pictorial_search
+
"?
name=
"
+
name
result
=
self
.
s
.
get
(
url
=
url
)
result
=
self
.
s
.
get
(
url
=
url
)
getMethod
.
getmethod
(
p
,
result
)
getMethod
.
getmethod
(
p
,
result
)
...
...
param/params.py
View file @
2d8995c4
...
@@ -38,8 +38,6 @@ unread = "/api/v1/message/unread?type=0"
...
@@ -38,8 +38,6 @@ unread = "/api/v1/message/unread?type=0"
# 点赞列表接口
# 点赞列表接口
likelist
=
"/api/v1/message/like"
likelist
=
"/api/v1/message/like"
# 获取socket地址
socketaddress
=
"/api/v1/user/socket"
# 获取最新通知信息
# 获取最新通知信息
new_info
=
"/api/v1/push/newest/info"
new_info
=
"/api/v1/push/newest/info"
...
@@ -79,7 +77,7 @@ pictorial_card = "/api/v1/cards/pictorial?"
...
@@ -79,7 +77,7 @@ pictorial_card = "/api/v1/cards/pictorial?"
pictorial_and_topic
=
"/api/v1/pictorial/topic/add"
pictorial_and_topic
=
"/api/v1/pictorial/topic/add"
# 画报搜索
# 画报搜索
pictorial_search
=
"api/pictorial/search"
pictorial_search
=
"
/
api/pictorial/search"
...
...
report/result.html
View file @
2d8995c4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment