🩹(backend) address linter flakiness on Email tests

Pylint was randomly failing due to a warning while unpacking emails.
The W0632 (Possible unbalanced tuple unpacking) was triggered.

Replace tuple unpacking by an explicitly accessing the first element of
the array using index.
This commit is contained in:
Lebaud Antoine
2024-04-08 15:25:12 +02:00
committed by aleb_the_flash
parent 711abcb49f
commit 2f1805b721

View File

@@ -257,7 +257,7 @@ def test_models_team_invitations_email():
assert len(mail.outbox) == 1
# pylint: disable-next=no-member
(email,) = mail.outbox
email = mail.outbox[0]
assert email.to == [invitation.email]
assert email.subject == "Invitation to join Desk!"