mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
Start adding some tests
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user