Skip to content

Commit

Permalink
Fix d'un test d'ajout de message
Browse files Browse the repository at this point in the history
Résolution du bug de découpage des noms contenant "et".
Corrige le traitement des cas comme "Bonnet et 1 autre" ou "Davis Miguel et [retour à la ligne] 1 autre" en nettoyant le texte avant division.
  • Loading branch information
alanzirek authored and Anto59290 committed Feb 28, 2025
1 parent 8273e4e commit c3f69cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sv/tests/test_evenement_message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import re
import tempfile

import pytest
Expand Down Expand Up @@ -217,7 +218,8 @@ def test_can_add_and_see_message_with_multiple_recipients_and_copies(live_server
assert page.text_content(cell_selector) == "Structure Test"
cell_selector = f"#table-sm-row-key-1 td:nth-child({3}) a"
cell_content = page.text_content(cell_selector).strip()
agent, other = cell_content.split("et")
clean_content = " ".join(cell_content.split())
agent, other = re.split(r" et ", clean_content)
assert agent.strip() in [str(agent) for agent in agents]
assert "1 autre" in other

Expand Down

0 comments on commit c3f69cb

Please sign in to comment.