Skip to content

Commit

Permalink
test(deltachat-rpc-client): test securejoin
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Oct 27, 2023
1 parent da74495 commit 9be56a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deltachat-rpc-client/tests/test_something.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9be56a5

Please sign in to comment.