Skip to content

Commit 35a305e

Browse files
author
Tasuku OKUDA
committed
Fix typo
1 parent 71feea8 commit 35a305e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

linebot/webhook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def parse(self, body, signature):
6262
"""Parse webhook request body as text.
6363
6464
Args:
65-
body: Webhook request body (as test)
65+
body: Webhook request body (as text)
6666
signature: X-Line-Signature value (as text)
6767
6868
Returns: Event object list
@@ -142,7 +142,7 @@ def handle(self, body, signature):
142142
"""Handle webhook
143143
144144
Args:
145-
body: Webhook request body (as test)
145+
body: Webhook request body (as text)
146146
signature: X-Line-Signature value (as text)
147147
"""
148148

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
class TestUtils(unittest.TestCase):
10-
def test_to_camel_case(self):
10+
def test_to_snake_case(self):
1111
self.assertEqual(
1212
to_snake_case('hogeBar'),
1313
'hoge_bar'

tests/test_webhook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def join(event):
302302
self.calls.append('5 ' + event.type)
303303

304304
@self.handler.add(PostbackEvent)
305-
def join(event):
305+
def postback(event):
306306
self.calls.append('6 ' + event.type)
307307

308308
@self.handler.add(BeaconEvent)
@@ -313,7 +313,7 @@ def beacon(event):
313313
def default(event):
314314
self.calls.append('default ' + event.type)
315315

316-
def test_hoge(self):
316+
def test_handler(self):
317317
file_dir = os.path.dirname(__file__)
318318
webhook_sample_json_path = os.path.join(file_dir, 'text', 'webhook.json')
319319
with open(webhook_sample_json_path) as fp:

0 commit comments

Comments
 (0)