Start adding some tests

This commit is contained in:
Hocuri
2026-09-17 18:18:22 +02:00
parent 11a8d42ca7
commit f308e739cd
5 changed files with 87 additions and 3 deletions

View File

@@ -26,12 +26,18 @@ def wait_for_imap_message(imap):
def test_add_second_address(acf) -> None:
account = acf.new_configured_account()
assert len(account.list_transports()) == 1
assert len(account.list_transports()) == 1
qr = acf.get_account_qr()
account.add_transport_from_qr(qr)
assert len(account.list_transports()) == 2
# init_transports() only works on an unconfigured profile:
with pytest.raises(JsonRpcError):
account.init_transports(qr)
with pytest.raises(JsonRpcError):
account.init_transports()
account.add_transport_from_qr(qr)
assert len(account.list_transports()) == 3