From c080a1f8b03a5e93530f9ba019d1af276ec49d77 Mon Sep 17 00:00:00 2001
From: Nico Alt <nicoalt@posteo.org>
Date: Sun, 16 Jun 2019 22:03:32 +0200
Subject: [PATCH] Use double quotation marks in private_chat

---
 src/briar/api/models/private_chat.py        | 6 +++---
 tests/briar/api/models/test_private_chat.py | 3 ++-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/briar/api/models/private_chat.py b/src/briar/api/models/private_chat.py
index abf5e3b..13ff60d 100644
--- a/src/briar/api/models/private_chat.py
+++ b/src/briar/api/models/private_chat.py
@@ -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})
diff --git a/tests/briar/api/models/test_private_chat.py b/tests/briar/api/models/test_private_chat.py
index 46b908a..5d071a8 100644
--- a/tests/briar/api/models/test_private_chat.py
+++ b/tests/briar/api/models/test_private_chat.py
@@ -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
-- 
GitLab