mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 12:28:06 +00:00
fix formatting
This commit is contained in:
@@ -64,8 +64,10 @@ def gencreds(maildomain):
|
|||||||
# use the cmfactory fixture to get chatmail instance accounts
|
# use the cmfactory fixture to get chatmail instance accounts
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
class ChatmailTestProcess:
|
class ChatmailTestProcess:
|
||||||
"""Provider for chatmail instance accounts as used by deltachat.testplugin.acfactory """
|
"""Provider for chatmail instance accounts as used by deltachat.testplugin.acfactory"""
|
||||||
|
|
||||||
def __init__(self, pytestconfig, maildomain, gencreds):
|
def __init__(self, pytestconfig, maildomain, gencreds):
|
||||||
self.pytestconfig = pytestconfig
|
self.pytestconfig = pytestconfig
|
||||||
self.maildomain = maildomain
|
self.maildomain = maildomain
|
||||||
@@ -90,6 +92,7 @@ def cmfactory(request, maildomain, gencreds, tmpdir, data):
|
|||||||
# cloned from deltachat.testplugin.amfactory
|
# cloned from deltachat.testplugin.amfactory
|
||||||
pytest.importorskip("deltachat")
|
pytest.importorskip("deltachat")
|
||||||
from deltachat.testplugin import ACFactory
|
from deltachat.testplugin import ACFactory
|
||||||
|
|
||||||
testproc = ChatmailTestProcess(request.config, maildomain, gencreds)
|
testproc = ChatmailTestProcess(request.config, maildomain, gencreds)
|
||||||
am = ACFactory(request=request, tmpdir=tmpdir, testprocess=testproc, data=data)
|
am = ACFactory(request=request, tmpdir=tmpdir, testprocess=testproc, data=data)
|
||||||
yield am
|
yield am
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
class TestMailSending:
|
class TestMailSending:
|
||||||
def test_one_on_one(self, cmfactory, lp):
|
def test_one_on_one(self, cmfactory, lp):
|
||||||
ac1, ac2 = cmfactory.get_online_accounts(2)
|
ac1, ac2 = cmfactory.get_online_accounts(2)
|
||||||
|
|||||||
Reference in New Issue
Block a user