@@ -58,16 +58,15 @@ def test_qr_setup_contact_svg(acfactory) -> None:
5858 assert "Alice" in svg
5959
6060
61- @pytest .mark .parametrize ("protect" , [True , False ])
62- def test_qr_securejoin (acfactory , protect ):
61+ def test_qr_securejoin (acfactory ):
6362 alice , bob , fiona = acfactory .get_online_accounts (3 )
6463
6564 # Setup second device for Alice
6665 # to test observing securejoin protocol.
6766 alice2 = alice .clone ()
6867
6968 logging .info ("Alice creates a group" )
70- alice_chat = alice .create_group ("Group" , protect = protect )
69+ alice_chat = alice .create_group ("Group" )
7170
7271 logging .info ("Bob joins the group" )
7372 qr_code = alice_chat .get_qr_code ()
@@ -123,8 +122,8 @@ def test_qr_securejoin_contact_request(acfactory) -> None:
123122 bob_chat_alice = snapshot .chat
124123 assert bob_chat_alice .get_basic_snapshot ().is_contact_request
125124
126- alice_chat = alice .create_group ("Verified group" , protect = True )
127- logging .info ("Bob joins verified group" )
125+ alice_chat = alice .create_group ("Group" )
126+ logging .info ("Bob joins the group" )
128127 qr_code = alice_chat .get_qr_code ()
129128 bob .secure_join (qr_code )
130129 while True :
@@ -148,8 +147,8 @@ def test_qr_readreceipt(acfactory) -> None:
148147 for joiner in [bob , charlie ]:
149148 joiner .wait_for_securejoin_joiner_success ()
150149
151- logging .info ("Alice creates a verified group" )
152- group = alice .create_group ("Group" , protect = True )
150+ logging .info ("Alice creates a group" )
151+ group = alice .create_group ("Group" )
153152
154153 alice_contact_bob = alice .create_contact (bob , "Bob" )
155154 alice_contact_charlie = alice .create_contact (charlie , "Charlie" )
@@ -214,10 +213,10 @@ def test_verified_group_member_added_recovery(acfactory) -> None:
214213 """Tests verified group recovery by reverifying then removing and adding a member back."""
215214 ac1 , ac2 , ac3 = acfactory .get_online_accounts (3 )
216215
217- logging .info ("ac1 creates verified group" )
218- chat = ac1 .create_group ("Verified group" , protect = True )
216+ logging .info ("ac1 creates a group" )
217+ chat = ac1 .create_group ("Group" )
219218
220- logging .info ("ac2 joins verified group" )
219+ logging .info ("ac2 joins the group" )
221220 qr_code = chat .get_qr_code ()
222221 ac2 .secure_join (qr_code )
223222 ac2 .wait_for_securejoin_joiner_success ()
@@ -299,8 +298,8 @@ def test_qr_join_chat_with_pending_bobstate_issue4894(acfactory):
299298 # we first create a fully joined verified group, and then start
300299 # joining a second time but interrupt it, to create pending bob state
301300
302- logging .info ("ac1: create verified group that ac2 fully joins" )
303- ch1 = ac1 .create_group ("Group" , protect = True )
301+ logging .info ("ac1: create a group that ac2 fully joins" )
302+ ch1 = ac1 .create_group ("Group" )
304303 qr_code = ch1 .get_qr_code ()
305304 ac2 .secure_join (qr_code )
306305 ac1 .wait_for_securejoin_inviter_success ()
@@ -323,7 +322,7 @@ def test_qr_join_chat_with_pending_bobstate_issue4894(acfactory):
323322 assert ac2 .create_contact (ac3 ).get_snapshot ().is_verified
324323
325324 logging .info ("ac3: create a verified group VG with ac2" )
326- vg = ac3 .create_group ("ac3-created" , protect = True )
325+ vg = ac3 .create_group ("ac3-created" )
327326 vg .add_contact (ac3 .create_contact (ac2 ))
328327
329328 # ensure ac2 receives message in VG
@@ -354,7 +353,7 @@ def test_qr_new_group_unblocked(acfactory):
354353 """
355354
356355 ac1 , ac2 = acfactory .get_online_accounts (2 )
357- ac1_chat = ac1 .create_group ("Group for joining" , protect = True )
356+ ac1_chat = ac1 .create_group ("Group for joining" )
358357 qr_code = ac1_chat .get_qr_code ()
359358 ac2 .secure_join (qr_code )
360359
@@ -379,7 +378,7 @@ def test_aeap_flow_verified(acfactory):
379378 addr , password = acfactory .get_credentials ()
380379
381380 logging .info ("ac1: create verified-group QR, ac2 scans and joins" )
382- chat = ac1 .create_group ("hello" , protect = True )
381+ chat = ac1 .create_group ("hello" )
383382 qr_code = chat .get_qr_code ()
384383 logging .info ("ac2: start QR-code based join-group protocol" )
385384 ac2 .secure_join (qr_code )
@@ -446,7 +445,7 @@ def test_gossip_verification(acfactory) -> None:
446445 assert carol_contact_alice_snapshot .is_verified
447446
448447 logging .info ("Bob creates a Securejoin group" )
449- bob_group_chat = bob .create_group ("Securejoin Group" , protect = True )
448+ bob_group_chat = bob .create_group ("Securejoin Group" )
450449 bob_group_chat .add_contact (bob_contact_alice )
451450 bob_group_chat .add_contact (bob_contact_carol )
452451 bob_group_chat .send_message (text = "Hello Securejoin group" )
@@ -469,7 +468,7 @@ def test_securejoin_after_contact_resetup(acfactory) -> None:
469468 ac1 , ac2 , ac3 = acfactory .get_online_accounts (3 )
470469
471470 # ac3 creates protected group with ac1.
472- ac3_chat = ac3 .create_group ("Verified group" , protect = True )
471+ ac3_chat = ac3 .create_group ("Group" )
473472
474473 # ac1 joins ac3 group.
475474 ac3_qr_code = ac3_chat .get_qr_code ()
@@ -526,8 +525,8 @@ def test_securejoin_after_contact_resetup(acfactory) -> None:
526525def test_withdraw_securejoin_qr (acfactory ):
527526 alice , bob = acfactory .get_online_accounts (2 )
528527
529- logging .info ("Alice creates a verified group" )
530- alice_chat = alice .create_group ("Verified group" , protect = True )
528+ logging .info ("Alice creates a group" )
529+ alice_chat = alice .create_group ("Group" )
531530 logging .info ("Bob joins verified group" )
532531
533532 qr_code = alice_chat .get_qr_code ()
0 commit comments