From 9be56a5e5689265489a39ea14eaf1ccaedbc9788 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 27 Oct 2023 20:05:35 +0000 Subject: [PATCH] test(deltachat-rpc-client): test securejoin --- deltachat-rpc-client/tests/test_something.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deltachat-rpc-client/tests/test_something.py b/deltachat-rpc-client/tests/test_something.py index 548b7777c9..37204cc76a 100644 --- a/deltachat-rpc-client/tests/test_something.py +++ b/deltachat-rpc-client/tests/test_something.py @@ -377,3 +377,15 @@ def test_provider_info(rpc) -> None: rpc.set_config(account_id, "socks5_enabled", "1") provider_info = rpc.get_provider_info(account_id, "github.com") assert provider_info is None + + +def test_qr_setup_contact(acfactory) -> None: + alice, bob = acfactory.get_online_accounts(2) + + qr_code, _svg = alice.get_qr_code() + bob.secure_join(qr_code) + + while True: + event = alice.wait_for_event() + if event["kind"] == "SecurejoinInviterProgress" and event["progress"] == 1000: + return