style: Run pre-commit

This commit is contained in:
Joakim Saario 2022-08-21 22:08:29 +02:00
parent b47882b114
commit 9c6c13b78a
No known key found for this signature in database
GPG key ID: D8B76D271B7BD453
235 changed files with 7180 additions and 5628 deletions

View file

@ -1,5 +1,4 @@
import io
from subprocess import PIPE, Popen
import pytest
@ -23,7 +22,7 @@ def sendmail(from_: str, to_: str, content: str) -> Email:
def test_email_glue():
""" Test that Email.glue() decodes both base64 and decoded content. """
"""Test that Email.glue() decodes both base64 and decoded content."""
body = "Test email."
sendmail("test@example.org", "test@example.org", body)
assert Email.count() == 1
@ -34,7 +33,7 @@ def test_email_glue():
def test_email_dump():
""" Test that Email.dump() dumps a single email. """
"""Test that Email.dump() dumps a single email."""
body = "Test email."
sendmail("test@example.org", "test@example.org", body)
assert Email.count() == 1
@ -46,7 +45,7 @@ def test_email_dump():
def test_email_dump_multiple():
""" Test that Email.dump() dumps multiple emails. """
"""Test that Email.dump() dumps multiple emails."""
body = "Test email."
sendmail("test@example.org", "test@example.org", body)
sendmail("test2@example.org", "test2@example.org", body)