fix: test_no_vrfy to use an actually existing address

This commit is contained in:
holger krekel
2026-03-16 10:55:39 +01:00
parent ba3d86c9c7
commit 2a676c7e35

View File

@@ -89,7 +89,10 @@ def test_concurrent_logins_same_account(
assert login_results.get()
def test_no_vrfy(chatmail_config):
def test_no_vrfy(chatmail_config, cmfactory):
ac1 = cmfactory.get_online_account()
addr = ac1.get_config("addr")
domain = chatmail_config.mail_domain
s = smtplib.SMTP(domain)
@@ -98,7 +101,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