Skip to content

Commit ecfc63d

Browse files
committed
Merge branch 'add-contacts' into add-groups
2 parents 73693e7 + e0e8278 commit ecfc63d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

messagebird/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def contact_delete(self, id):
143143
self.request_plain_text('contacts/' + str(id), 'DELETE')
144144

145145
def contact_update(self, id, params=None):
146-
self.request('contacts/' + str(id), 'PATCH', params)
146+
self.request_plain_text('contacts/' + str(id), 'PATCH', params)
147147

148148
def contact_list(self, limit=0, offset=0):
149149
query = 'limit='+str(limit)+'&offset='+str(offset)

tests/test_contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_contact_delete_invalid(self):
5151

5252
def test_contact_update(self):
5353
http_client = Mock()
54-
http_client.request.return_value = '{}'
54+
http_client.request.return_value = ''
5555

5656
Client('', http_client).contact_update('contact-id', {'msisdn': 31687654321, 'custom4': 'fourth'})
5757

0 commit comments

Comments
 (0)