diff --git a/cmdeploy/src/cmdeploy/tests/online/benchmark.py b/cmdeploy/src/cmdeploy/tests/online/benchmark.py index 8363651f..b9f69481 100644 --- a/cmdeploy/src/cmdeploy/tests/online/benchmark.py +++ b/cmdeploy/src/cmdeploy/tests/online/benchmark.py @@ -1,4 +1,3 @@ -import time def test_tls_imap(benchmark, imap): def imap_connect(): imap.connect() diff --git a/cmdeploy/src/cmdeploy/tests/online/test_0_login.py b/cmdeploy/src/cmdeploy/tests/online/test_0_login.py index e5c2b857..eab39a5c 100644 --- a/cmdeploy/src/cmdeploy/tests/online/test_0_login.py +++ b/cmdeploy/src/cmdeploy/tests/online/test_0_login.py @@ -89,7 +89,9 @@ def test_concurrent_logins_same_account( assert login_results.get() -def test_no_vrfy(chatmail_config): +def test_no_vrfy(cmfactory, chatmail_config): + ac = cmfactory.get_online_account() + addr = ac.get_config("addr") domain = chatmail_config.mail_domain s = smtplib.SMTP(domain) @@ -98,7 +100,7 @@ def test_no_vrfy(chatmail_config): s.putcmd("vrfy", f"wrongaddress@{chatmail_config.mail_domain}") result = s.getreply() print(result) - s.putcmd("vrfy", f"echo@{chatmail_config.mail_domain}") + s.putcmd("vrfy", addr) result2 = s.getreply() print(result2) assert result[0] == result2[0] == 252 diff --git a/cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py b/cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py index 53e3846a..947c34f9 100644 --- a/cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py +++ b/cmdeploy/src/cmdeploy/tests/online/test_2_deltachat.py @@ -6,8 +6,8 @@ import imap_tools import pytest import requests -from cmdeploy.remote import rshell from cmdeploy.cmdeploy import get_sshexec +from cmdeploy.remote import rshell @pytest.fixture