summaryrefslogtreecommitdiff
path: root/py-fake-service/app/adapter
diff options
context:
space:
mode:
Diffstat (limited to 'py-fake-service/app/adapter')
-rw-r--r--py-fake-service/app/adapter/contacts.py6
-rw-r--r--py-fake-service/app/adapter/mailset.py5
2 files changed, 8 insertions, 3 deletions
diff --git a/py-fake-service/app/adapter/contacts.py b/py-fake-service/app/adapter/contacts.py
index aaf2d23e..5c55b8b1 100644
--- a/py-fake-service/app/adapter/contacts.py
+++ b/py-fake-service/app/adapter/contacts.py
@@ -13,8 +13,10 @@ class Contacts:
def search(self, query):
contacts_query = re.compile(query)
return [
- contact.__dict__ for contact in self.contacts if contacts_query.match(
- contact.addresses[0])]
+ contact.__dict__
+ for contact in self.contacts
+ if contacts_query.match(contact.addresses[0])
+ ]
class Contact:
diff --git a/py-fake-service/app/adapter/mailset.py b/py-fake-service/app/adapter/mailset.py
index d08a58cb..2d9707ab 100644
--- a/py-fake-service/app/adapter/mailset.py
+++ b/py-fake-service/app/adapter/mailset.py
@@ -22,7 +22,10 @@ class MailSet:
mail.status.append('read')
def delete(self, mail_id):
- """ Returns True if the email got purged, else returns False meaning the email got moved to trash """
+ """
+ Returns True if the email got purged,
+ else returns False meaning the email got moved to trash
+ """
mail = self.get(mail_id)
if 'trash' in mail.tags: