From 79b41239abc66f75e83ad5a330b3f47eeb07164e Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 15 May 2026 18:43:48 +0200 Subject: [PATCH] test: online test for legacy Secure-Join key request --- deltachat-rpc-client/tests/test_cross_core.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/deltachat-rpc-client/tests/test_cross_core.py b/deltachat-rpc-client/tests/test_cross_core.py index 31d39c790..f58d1d23a 100644 --- a/deltachat-rpc-client/tests/test_cross_core.py +++ b/deltachat-rpc-client/tests/test_cross_core.py @@ -16,7 +16,7 @@ def test_install_venv_and_use_other_core(tmp_path, get_core_python_env): @pytest.mark.parametrize("version", ["2.24.0"]) -def test_qr_setup_contact(alice_and_remote_bob, version) -> None: +def test_qr_setup_contact(acfactory, alice_and_remote_bob, version) -> None: """Test other-core Bob profile can do securejoin with Alice on current core.""" alice, alice_contact_bob, remote_eval = alice_and_remote_bob(version) @@ -33,6 +33,15 @@ def test_qr_setup_contact(alice_and_remote_bob, version) -> None: # Test that Bob verified Alice's profile. assert remote_eval("bob_contact_alice.get_snapshot().is_verified") + # Test that Bob can also scan a QR code + # of Alice for which the key is not known yet. + # For the test above Bob already knew the key from a vCard. + alice2 = acfactory.get_online_account() + qr_code = alice2.get_qr_code() + remote_eval(f"bob.secure_join({qr_code!r})") + remote_eval("bob.wait_for_securejoin_joiner_success()") + alice2.wait_for_securejoin_inviter_success() + def test_send_and_receive_message(alice_and_remote_bob) -> None: """Test other-core Bob profile can send a message to Alice on current core."""