Skip to content

Commit 53e1fa0

Browse files
committed
refactor: typo in variable naming
1 parent 3032100 commit 53e1fa0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/test_push.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ def setup_func():
2525

2626
@with_setup(setup_func)
2727
def test_basic_push(): # type: () -> None
28-
instanlation = leancloud.Installation()
29-
instanlation.set('deviceType', 'ios')
30-
instanlation.set('deviceToken', 'xxx')
31-
instanlation.save()
28+
installation = leancloud.Installation()
29+
installation.set('deviceType', 'ios')
30+
installation.set('deviceToken', 'xxx')
31+
installation.save()
3232

3333
data = {
3434
"alert": {
@@ -47,7 +47,7 @@ def test_basic_push(): # type: () -> None
4747
notification = push.send(data, where=query, push_time=now, expiration_time=two_hours_later)
4848
time.sleep(5) # notification write may have delay
4949
notification.fetch()
50-
assert(notification.id)
50+
assert notification.id
5151

5252
try:
5353
notification.save()

0 commit comments

Comments
 (0)