Skip to content

Commit a306d64

Browse files
committed
Adjust test_download_limit_chat_assignment
1 parent 4a41e41 commit a306d64

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

deltachat-rpc-client/tests/test_something.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -610,15 +610,12 @@ def test_download_limit_chat_assignment(acfactory, tmp_path, n_accounts):
610610
alice_group.send_file(str(path))
611611
snapshot = bob.get_message_by_id(bob.wait_for_incoming_msg_event().msg_id).get_snapshot()
612612
assert snapshot.download_state == DownloadState.AVAILABLE
613-
if n_accounts > 2:
614-
assert snapshot.chat == bob_group
615-
else:
616-
# Group contains only Alice and Bob,
617-
# so partially downloaded messages are
618-
# hard to distinguish from private replies to group messages.
619-
#
620-
# Message may be a private reply, so we assign it to 1:1 chat with Alice.
621-
assert snapshot.chat == bob_chat_alice
613+
614+
# Even with 2 accounts partially downloaded message
615+
# should be correctly assigned to a group
616+
# because it has two contacts (including the sender)
617+
# in the To: field.
618+
assert snapshot.chat == bob_group
622619

623620

624621
def test_markseen_contact_request(acfactory, tmp_path):

0 commit comments

Comments
 (0)