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
84aaa6e3
Commit
84aaa6e3
authored
Jan 18, 2021
by
liangfenglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
345e5e37
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
livecase.py
testCase/live/livecase.py
+3
-3
No files found.
testCase/live/livecase.py
View file @
84aaa6e3
...
@@ -100,7 +100,7 @@ class LiveCase(unittest.TestCase):
...
@@ -100,7 +100,7 @@ class LiveCase(unittest.TestCase):
return
not
r
[
'data'
][
'stream_status'
][
'is_finish'
]
return
not
r
[
'data'
][
'stream_status'
][
'is_finish'
]
@classmethod
@classmethod
#
@require_login(settings.LIVE_WATCHER)
@require_login
(
settings
.
LIVE_WATCHER
)
def
follow_status
(
cls
):
def
follow_status
(
cls
):
if
not
cls
.
channel_id
:
if
not
cls
.
channel_id
:
return
return
...
@@ -113,7 +113,7 @@ class LiveCase(unittest.TestCase):
...
@@ -113,7 +113,7 @@ class LiveCase(unittest.TestCase):
@classmethod
@classmethod
#
@require_login(settings.LIVE_WATCHER)
@require_login
(
settings
.
LIVE_WATCHER
)
def
user_follow_add
(
cls
):
def
user_follow_add
(
cls
):
uri
=
'/api/user/follow/add'
uri
=
'/api/user/follow/add'
url
=
settings
.
BACKEND_ADMIN
+
uri
url
=
settings
.
BACKEND_ADMIN
+
uri
...
@@ -125,7 +125,7 @@ class LiveCase(unittest.TestCase):
...
@@ -125,7 +125,7 @@ class LiveCase(unittest.TestCase):
return
r
return
r
@classmethod
@classmethod
#
@require_login(settings.LIVE_WATCHER)
@require_login
(
settings
.
LIVE_WATCHER
)
def
user_follow_del
(
cls
):
def
user_follow_del
(
cls
):
uri
=
'/api/user/follow/del'
uri
=
'/api/user/follow/del'
url
=
settings
.
BACKEND_ADMIN
+
uri
url
=
settings
.
BACKEND_ADMIN
+
uri
...
...
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