Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
AutoApiTest
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
business
AutoApiTest
Commits
51987505
Commit
51987505
authored
Jan 05, 2021
by
liangfenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新标题
parent
88c644d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_live_sendmsg.py
testCase/live/test_live_sendmsg.py
+3
-3
No files found.
testCase/live/test_live_sendmsg.py
View file @
51987505
...
...
@@ -20,7 +20,7 @@ class LiveSendMsg(LiveCase):
def
test_live_sendmsg_visitor
(
self
):
'''
游客
进入直播间
游客
发送弹幕
'''
rep
=
requests
.
post
(
self
.
url
,
data
=
self
.
data
)
.
json
()
self
.
assertEqual
(
rep
[
'error_code'
],
70000
,
rep
)
...
...
@@ -29,7 +29,7 @@ class LiveSendMsg(LiveCase):
@require_login
(
settings
.
LIVE_WATCHER
)
def
test_live_sendmsg_user
(
self
):
'''
app用户
进入直播间
app用户
发送弹幕
'''
rep
=
requests
.
post
(
self
.
url
,
data
=
self
.
data
)
.
json
()
self
.
assertEqual
(
rep
[
'error'
],
1
,
rep
)
...
...
@@ -38,7 +38,7 @@ class LiveSendMsg(LiveCase):
@require_login
(
settings
.
LIVE_USER
)
def
test_live_sendmsg_author
(
self
):
'''
主播
进入直播间
主播
发送弹幕
'''
rep
=
requests
.
post
(
self
.
url
,
self
.
data
)
.
json
()
self
.
assertEqual
(
rep
[
'error'
],
0
,
rep
)
...
...
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