@@ -68,7 +68,6 @@ def test_qr_securejoin(acfactory, protect):
68
68
69
69
logging .info ("Alice creates a group" )
70
70
alice_chat = alice .create_group ("Group" , protect = protect )
71
- assert alice_chat .get_basic_snapshot ().is_protected == protect
72
71
73
72
logging .info ("Bob joins the group" )
74
73
qr_code = alice_chat .get_qr_code ()
@@ -89,7 +88,6 @@ def test_qr_securejoin(acfactory, protect):
89
88
90
89
snapshot = bob .get_message_by_id (bob .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
91
90
assert snapshot .text == "Member Me added by {}." .format (alice .get_config ("addr" ))
92
- assert snapshot .chat .get_basic_snapshot ().is_protected == protect
93
91
94
92
# Test that Bob verified Alice's profile.
95
93
bob_contact_alice = bob .create_contact (alice )
@@ -218,7 +216,6 @@ def test_verified_group_member_added_recovery(acfactory) -> None:
218
216
219
217
logging .info ("ac1 creates verified group" )
220
218
chat = ac1 .create_group ("Verified group" , protect = True )
221
- assert chat .get_basic_snapshot ().is_protected
222
219
223
220
logging .info ("ac2 joins verified group" )
224
221
qr_code = chat .get_qr_code ()
@@ -313,7 +310,6 @@ def test_qr_join_chat_with_pending_bobstate_issue4894(acfactory):
313
310
while 1 :
314
311
snapshot = ac2 .get_message_by_id (ac2 .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
315
312
if snapshot .text == "ac1 says hello" :
316
- assert snapshot .chat .get_basic_snapshot ().is_protected
317
313
break
318
314
319
315
logging .info ("ac1: let ac2 join again but shutoff ac1 in the middle of securejoin" )
@@ -335,7 +331,6 @@ def test_qr_join_chat_with_pending_bobstate_issue4894(acfactory):
335
331
while 1 :
336
332
msg = ac2 .get_message_by_id (ac2 .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
337
333
if msg .text == "hello" :
338
- assert msg .chat .get_basic_snapshot ().is_protected
339
334
break
340
335
341
336
logging .info ("ac3: create a join-code for group VG and let ac4 join, check that ac2 got it" )
@@ -385,7 +380,6 @@ def test_aeap_flow_verified(acfactory):
385
380
386
381
logging .info ("ac1: create verified-group QR, ac2 scans and joins" )
387
382
chat = ac1 .create_group ("hello" , protect = True )
388
- assert chat .get_basic_snapshot ().is_protected
389
383
qr_code = chat .get_qr_code ()
390
384
logging .info ("ac2: start QR-code based join-group protocol" )
391
385
ac2 .secure_join (qr_code )
@@ -439,7 +433,6 @@ def test_gossip_verification(acfactory) -> None:
439
433
440
434
logging .info ("Bob creates an Autocrypt group" )
441
435
bob_group_chat = bob .create_group ("Autocrypt Group" )
442
- assert not bob_group_chat .get_basic_snapshot ().is_protected
443
436
bob_group_chat .add_contact (bob_contact_alice )
444
437
bob_group_chat .add_contact (bob_contact_carol )
445
438
bob_group_chat .send_message (text = "Hello Autocrypt group" )
@@ -454,7 +447,6 @@ def test_gossip_verification(acfactory) -> None:
454
447
455
448
logging .info ("Bob creates a Securejoin group" )
456
449
bob_group_chat = bob .create_group ("Securejoin Group" , protect = True )
457
- assert bob_group_chat .get_basic_snapshot ().is_protected
458
450
bob_group_chat .add_contact (bob_contact_alice )
459
451
bob_group_chat .add_contact (bob_contact_carol )
460
452
bob_group_chat .send_message (text = "Hello Securejoin group" )
@@ -525,7 +517,6 @@ def test_securejoin_after_contact_resetup(acfactory) -> None:
525
517
snapshot = ac2 .get_message_by_id (ac2 .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
526
518
assert snapshot .is_info
527
519
ac2_chat = snapshot .chat
528
- assert ac2_chat .get_basic_snapshot ().is_protected
529
520
assert len (ac2_chat .get_contacts ()) == 3
530
521
531
522
# ac1 is still "not verified" for ac2 due to inconsistent state.
@@ -537,7 +528,6 @@ def test_withdraw_securejoin_qr(acfactory):
537
528
538
529
logging .info ("Alice creates a verified group" )
539
530
alice_chat = alice .create_group ("Verified group" , protect = True )
540
- assert alice_chat .get_basic_snapshot ().is_protected
541
531
logging .info ("Bob joins verified group" )
542
532
543
533
qr_code = alice_chat .get_qr_code ()
@@ -548,7 +538,6 @@ def test_withdraw_securejoin_qr(acfactory):
548
538
549
539
snapshot = bob .get_message_by_id (bob .wait_for_incoming_msg_event ().msg_id ).get_snapshot ()
550
540
assert snapshot .text == "Member Me added by {}." .format (alice .get_config ("addr" ))
551
- assert snapshot .chat .get_basic_snapshot ().is_protected
552
541
bob_chat .leave ()
553
542
554
543
snapshot = alice .get_message_by_id (alice .wait_for_msgs_changed_event ().msg_id ).get_snapshot ()
0 commit comments