From fa408b120e11587729a846a1794c0de8221d822d Mon Sep 17 00:00:00 2001
From: Nico Alt <nicoalt@posteo.org>
Date: Sun, 7 Mar 2021 11:31:09 +0100
Subject: [PATCH] Fix lint

---
 briar_wrapper/exceptions/pending_already_exists_contact.py    | 2 +-
 .../exceptions/pending_already_exists_pending_contact.py      | 4 ++--
 briar_wrapper/models/contacts.py                              | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/briar_wrapper/exceptions/pending_already_exists_contact.py b/briar_wrapper/exceptions/pending_already_exists_contact.py
index 4c9bf32..e012133 100644
--- a/briar_wrapper/exceptions/pending_already_exists_contact.py
+++ b/briar_wrapper/exceptions/pending_already_exists_contact.py
@@ -12,5 +12,5 @@ class PendingContactAlreadyExistsContact(BriarWrapperException):
     def __init__(self, response, message=""):
         self.response = response
         error = response.json()
-        self.remoteAuthorName = error["remoteAuthorName"]
+        self.remote_author_name = error["remoteAuthorName"]
         super().__init__(message)
diff --git a/briar_wrapper/exceptions/pending_already_exists_pending_contact.py b/briar_wrapper/exceptions/pending_already_exists_pending_contact.py
index c7d71a3..5552573 100644
--- a/briar_wrapper/exceptions/pending_already_exists_pending_contact.py
+++ b/briar_wrapper/exceptions/pending_already_exists_pending_contact.py
@@ -12,6 +12,6 @@ class PendingContactAlreadyExistsPendingContact(BriarWrapperException):
     def __init__(self, response, message=""):
         self.response = response
         error = response.json()
-        self.pendingContactAlias = error["pendingContactAlias"]
-        self.pendingContactId = error["pendingContactId"]
+        self.pending_contact_alias = error["pendingContactAlias"]
+        self.pending_contact_id = error["pendingContactId"]
         super().__init__(message)
diff --git a/briar_wrapper/models/contacts.py b/briar_wrapper/models/contacts.py
index 031f741..de443ff 100644
--- a/briar_wrapper/models/contacts.py
+++ b/briar_wrapper/models/contacts.py
@@ -57,7 +57,7 @@ class Contacts(Model):
             return
         self._handle_add_pending_error(response)
 
-    def delete_pending(self, id: str) -> None:
+    def delete_pending(self, contact_id: str) -> None:
         # pylint: disable=line-too-long
         """
         Deletes pending contact with `id`
@@ -68,7 +68,7 @@ class Contacts(Model):
         """
         url = urljoin(BASE_HTTP_URL, self._API_ENDPOINT + "add/pending/")
         response = _delete(url, headers=self._headers,
-                           json={"pendingContactId": id})
+                           json={"pendingContactId": contact_id})
         if response.status_code == 200:
             return
         raise BriarWrapperException(response, "An unknown error occurred while"
-- 
GitLab