@@ -279,8 +279,10 @@ def test_verified_group_member_added_recovery(acfactory) -> None:
279279 ac1_contact_ac2 = ac1 .create_contact (ac2 )
280280 ac1_contact_ac3 = ac1 .create_contact (ac3 )
281281 ac1_contact_ac2_snapshot = ac1_contact_ac2 .get_snapshot ()
282- assert ac1_contact_ac2_snapshot .is_verified
283- assert ac1_contact_ac2_snapshot .verifier_id == ac1_contact_ac3 .id
282+ # Until we reset verifications and then send the _verified header,
283+ # verification is not gossiped here:
284+ assert not ac1_contact_ac2_snapshot .is_verified
285+ assert ac1_contact_ac2_snapshot .verifier_id != ac1_contact_ac3 .id
284286
285287
286288def test_qr_join_chat_with_pending_bobstate_issue4894 (acfactory ):
@@ -442,7 +444,9 @@ def test_gossip_verification(acfactory) -> None:
442444
443445 # Group propagates verification using Autocrypt-Gossip header.
444446 carol_contact_alice_snapshot = carol_contact_alice .get_snapshot ()
445- assert carol_contact_alice_snapshot .is_verified
447+ # Until we reset verifications and then send the _verified header,
448+ # verification is not gossiped here:
449+ assert not carol_contact_alice_snapshot .is_verified
446450
447451 logging .info ("Bob creates a Securejoin group" )
448452 bob_group_chat = bob .create_group ("Securejoin Group" )
@@ -456,7 +460,9 @@ def test_gossip_verification(acfactory) -> None:
456460
457461 # Securejoin propagates verification.
458462 carol_contact_alice_snapshot = carol_contact_alice .get_snapshot ()
459- assert carol_contact_alice_snapshot .is_verified
463+ # Until we reset verifications and then send the _verified header,
464+ # verification is not gossiped here:
465+ assert not carol_contact_alice_snapshot .is_verified
460466
461467
462468def test_securejoin_after_contact_resetup (acfactory ) -> None :
0 commit comments