mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
style: Run pre-commit
This commit is contained in:
parent
b47882b114
commit
9c6c13b78a
235 changed files with 7180 additions and 5628 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue