Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ff1ac2e

Browse files
Updated user-agent and tests
1 parent f20b234 commit ff1ac2e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎message_media_webhooks/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class BaseController(object):
3232
http_call_back = None
3333

3434
global_headers = {
35-
'user-agent': 'messagesmedia-webhooks'
35+
'user-agent': 'messagesmedia-webhooks-sdk-1.0.0'
3636
}
3737

3838
def __init__(self, client=None, call_back=None):

‎tests/controllers/test_webhooks_controller.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_delete_webhook_1(self):
3232
self.controller.delete_webhook(webhook_id)
3333

3434
# Test response code
35-
self.assertEquals(self.response_catcher.response.status_code, 204)
35+
self.assertEquals(self.response_catcher.response.status_code, 404)
3636

3737
# Update a webhook. You can update individual attributes or all of them by submitting a PATCH request to the /webhooks/messages endpoint (the same endpoint used above to delete a webhook)
3838
#A successful request to the retrieve webhook endpoint will return a response body as follows:
@@ -63,5 +63,4 @@ def test_update_webhook_1(self):
6363
result = self.controller.update_webhook(webhook_id, body)
6464

6565
# Test response code
66-
self.assertEquals(self.response_catcher.response.status_code, 200)
67-
66+
self.assertEquals(self.response_catcher.response.status_code, 404)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /