@@ -58,16 +58,15 @@ def test_qr_setup_contact_svg(acfactory) -> None:
58
58
assert "Alice" in svg
59
59
60
60
61
- @pytest .mark .parametrize ("protect" , [True , False ])
62
- def test_qr_securejoin (acfactory , protect ):
61
+ def test_qr_securejoin (acfactory ):
63
62
alice , bob , fiona = acfactory .get_online_accounts (3 )
64
63
65
64
# Setup second device for Alice
66
65
# to test observing securejoin protocol.
67
66
alice2 = alice .clone ()
68
67
69
68
logging .info ("Alice creates a group" )
70
- alice_chat = alice .create_group ("Group" , protect = protect )
69
+ alice_chat = alice .create_group ("Group" )
71
70
72
71
logging .info ("Bob joins the group" )
73
72
qr_code = alice_chat .get_qr_code ()
@@ -123,8 +122,8 @@ def test_qr_securejoin_contact_request(acfactory) -> None:
123
122
bob_chat_alice = snapshot .chat
124
123
assert bob_chat_alice .get_basic_snapshot ().is_contact_request
125
124
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" )
128
127
qr_code = alice_chat .get_qr_code ()
129
128
bob .secure_join (qr_code )
130
129
while True :
@@ -148,8 +147,8 @@ def test_qr_readreceipt(acfactory) -> None:
148
147
for joiner in [bob , charlie ]:
149
148
joiner .wait_for_securejoin_joiner_success ()
150
149
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" )
153
152
154
153
alice_contact_bob = alice .create_contact (bob , "Bob" )
155
154
alice_contact_charlie = alice .create_contact (charlie , "Charlie" )
@@ -214,10 +213,10 @@ def test_verified_group_member_added_recovery(acfactory) -> None:
214
213
"""Tests verified group recovery by reverifying then removing and adding a member back."""
215
214
ac1 , ac2 , ac3 = acfactory .get_online_accounts (3 )
216
215
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" )
219
218
220
- logging .info ("ac2 joins verified group" )
219
+ logging .info ("ac2 joins the group" )
221
220
qr_code = chat .get_qr_code ()
222
221
ac2 .secure_join (qr_code )
223
222
ac2 .wait_for_securejoin_joiner_success ()
@@ -299,8 +298,8 @@ def test_qr_join_chat_with_pending_bobstate_issue4894(acfactory):
299
298
# we first create a fully joined verified group, and then start
300
299
# joining a second time but interrupt it, to create pending bob state
301
300
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" )
304
303
qr_code = ch1 .get_qr_code ()
305
304
ac2 .secure_join (qr_code )
306
305
ac1 .wait_for_securejoin_inviter_success ()
@@ -323,7 +322,7 @@ def test_qr_join_chat_with_pending_bobstate_issue4894(acfactory):
323
322
assert ac2 .create_contact (ac3 ).get_snapshot ().is_verified
324
323
325
324
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" )
327
326
vg .add_contact (ac3 .create_contact (ac2 ))
328
327
329
328
# ensure ac2 receives message in VG
@@ -354,7 +353,7 @@ def test_qr_new_group_unblocked(acfactory):
354
353
"""
355
354
356
355
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" )
358
357
qr_code = ac1_chat .get_qr_code ()
359
358
ac2 .secure_join (qr_code )
360
359
@@ -379,7 +378,7 @@ def test_aeap_flow_verified(acfactory):
379
378
addr , password = acfactory .get_credentials ()
380
379
381
380
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" )
383
382
qr_code = chat .get_qr_code ()
384
383
logging .info ("ac2: start QR-code based join-group protocol" )
385
384
ac2 .secure_join (qr_code )
@@ -446,7 +445,7 @@ def test_gossip_verification(acfactory) -> None:
446
445
assert carol_contact_alice_snapshot .is_verified
447
446
448
447
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" )
450
449
bob_group_chat .add_contact (bob_contact_alice )
451
450
bob_group_chat .add_contact (bob_contact_carol )
452
451
bob_group_chat .send_message (text = "Hello Securejoin group" )
@@ -469,7 +468,7 @@ def test_securejoin_after_contact_resetup(acfactory) -> None:
469
468
ac1 , ac2 , ac3 = acfactory .get_online_accounts (3 )
470
469
471
470
# ac3 creates protected group with ac1.
472
- ac3_chat = ac3 .create_group ("Verified group" , protect = True )
471
+ ac3_chat = ac3 .create_group ("Group" )
473
472
474
473
# ac1 joins ac3 group.
475
474
ac3_qr_code = ac3_chat .get_qr_code ()
@@ -526,8 +525,8 @@ def test_securejoin_after_contact_resetup(acfactory) -> None:
526
525
def test_withdraw_securejoin_qr (acfactory ):
527
526
alice , bob = acfactory .get_online_accounts (2 )
528
527
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" )
531
530
logging .info ("Bob joins verified group" )
532
531
533
532
qr_code = alice_chat .get_qr_code ()
0 commit comments