Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jpush-api-python-client
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
钟尚武
jpush-api-python-client
Commits
ae444497
Commit
ae444497
authored
Jun 19, 2017
by
Helperhaps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests
parent
a4100a3e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
17 deletions
+5
-17
conf.py
tests/conf.py
+1
-1
conf.py
tests/devices/conf.py
+1
-1
test_devices.py
tests/devices/test_devices.py
+0
-12
conf.py
tests/push/conf.py
+1
-1
conf.py
tests/report/conf.py
+1
-1
conf.py
tests/schedule/conf.py
+1
-1
No files found.
tests/conf.py
View file @
ae444497
# please put your app_key and master_secret here
# please put your app_key and master_secret here
app_key
=
u'6be9204c30b9473e87bad4dc'
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'
9349ad7c90292a603c512e92
'
master_secret
=
u'
cae22120eed6835e486399a7
'
tests/devices/conf.py
View file @
ae444497
# please put your app_key and master_secret here
# please put your app_key and master_secret here
app_key
=
u'6be9204c30b9473e87bad4dc'
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'
9349ad7c90292a603c512e92
'
master_secret
=
u'
cae22120eed6835e486399a7
'
tests/devices/test_devices.py
View file @
ae444497
...
@@ -54,22 +54,10 @@ class TestEntity(unittest.TestCase):
...
@@ -54,22 +54,10 @@ class TestEntity(unittest.TestCase):
result
=
device
.
delete_tag
(
tag
,
platform
)
result
=
device
.
delete_tag
(
tag
,
platform
)
self
.
assertEqual
(
result
.
status_code
,
200
)
self
.
assertEqual
(
result
.
status_code
,
200
)
def
test_tag_exist
(
self
):
tag
=
"ddd"
registration_id
=
'090c1f59f89'
result
=
device
.
check_taguserexist
(
tag
,
registration_id
)
self
.
assertEqual
(
result
.
status_code
,
200
)
def
test_tag_list
(
self
):
def
test_tag_list
(
self
):
result
=
device
.
get_taglist
()
result
=
device
.
get_taglist
()
self
.
assertEqual
(
result
.
status_code
,
200
)
self
.
assertEqual
(
result
.
status_code
,
200
)
def
test_update_tagusers
(
self
):
tag
=
"ddd"
entity
=
jpush
.
device_regid
(
jpush
.
add
(
"090c1f59f89"
))
result
=
device
.
update_tagusers
(
tag
,
entity
)
self
.
assertEqual
(
result
.
status_code
,
200
)
def
test_set_device_mobile
(
self
):
def
test_set_device_mobile
(
self
):
reg_id
=
'1507bfd3f7c466c355c'
reg_id
=
'1507bfd3f7c466c355c'
entity
=
jpush
.
device_tag
(
jpush
.
add
(
"ddd"
,
"tageee"
))
entity
=
jpush
.
device_tag
(
jpush
.
add
(
"ddd"
,
"tageee"
))
...
...
tests/push/conf.py
View file @
ae444497
# please put your app_key and master_secret here
# please put your app_key and master_secret here
app_key
=
u'6be9204c30b9473e87bad4dc'
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'
9349ad7c90292a603c512e92
'
master_secret
=
u'
cae22120eed6835e486399a7
'
tests/report/conf.py
View file @
ae444497
# please put your app_key and master_secret here
# please put your app_key and master_secret here
app_key
=
u'6be9204c30b9473e87bad4dc'
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'
9349ad7c90292a603c512e92
'
master_secret
=
u'
cae22120eed6835e486399a7
'
tests/schedule/conf.py
View file @
ae444497
# please put your app_key and master_secret here
# please put your app_key and master_secret here
app_key
=
u'6be9204c30b9473e87bad4dc'
app_key
=
u'6be9204c30b9473e87bad4dc'
master_secret
=
u'
9349ad7c90292a603c512e92
'
master_secret
=
u'
cae22120eed6835e486399a7
'
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