Commit c080a1f8 authored by Nico Alt's avatar Nico Alt

Use double quotation marks in private_chat

parent 6a23e036
......@@ -14,7 +14,7 @@ from briar.api.model import Model
class PrivateChat(Model):
def get(self, contact_id):
url = urljoin(BASE_HTTP_URL, 'messages/%i' % contact_id)
url = urljoin(BASE_HTTP_URL, "messages/%i" % contact_id)
request = _get(url, headers=self._headers)
return request.json()
......@@ -24,5 +24,5 @@ class PrivateChat(Model):
contact_id=contact_id)
def send(self, contact_id, message):
url = urljoin(BASE_HTTP_URL, 'messages/%i' % contact_id)
_post(url, headers=self._headers, json={'text': message})
url = urljoin(BASE_HTTP_URL, "messages/%i" % contact_id)
_post(url, headers=self._headers, json={"text": message})
......@@ -9,7 +9,8 @@ import requests_mock
from briar.api.models.private_chat import PrivateChat
@requests_mock.Mocker(kw='requests_mock')
@requests_mock.Mocker(kw="requests_mock")
def test_get_empty(api, request_headers, requests_mock):
private_chat = PrivateChat(api)
contact_id = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment