Skip to content

Commit

Permalink
add a test for imap capabilities offered from chatmail
Browse files Browse the repository at this point in the history
  • Loading branch information
hpk42 committed May 6, 2024
1 parent 8af825d commit c116322
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmdeploy/src/cmdeploy/tests/online/test_0_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ def test_init(tmp_path, 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):
"""Test a) that an initial login creates a user automatically
and b) verify we can also login a second time with the same password
Expand Down

0 comments on commit c116322

Please # to comment.