add a test for imap capabilities offered from chatmail

This commit is contained in:
holger krekel 2024-05-06 15:59:35 +02:00
parent 8af825d7ea
commit c1163228f6

View File

@ -15,6 +15,13 @@ def test_init(tmp_path, maildomain):
assert config.mail_domain == maildomain assert config.mail_domain == maildomain
def test_capabilities(imap):
imap.connect()
capas = imap.conn.capabilities
assert "XCHATMAIL" in capas
assert "XDELTAPUSH" in capas
def test_login_basic_functioning(imap_or_smtp, gencreds, lp): def test_login_basic_functioning(imap_or_smtp, gencreds, lp):
"""Test a) that an initial login creates a user automatically """Test a) that an initial login creates a user automatically
and b) verify we can also login a second time with the same password and b) verify we can also login a second time with the same password