Skip to content

Commit

Permalink
Adjusted test_pseudonymize_per
Browse files Browse the repository at this point in the history
  • Loading branch information
fexfl committed Nov 29, 2024
1 parent a02fd07 commit cba1607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mailcom/test/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def test_get_sentences_with_punctuation(get_default_fr):
def test_pseudonymize_per(get_default_fr):
sentence = "Francois and Agathe are friends."
nelist = ["Francois", "Agathe"]
pseudonymized_sentence = get_default_fr.pseudonymize_per(sentence, nelist)
get_default_fr.per_list = nelist
pseudonymized_sentence = get_default_fr.pseudonymize_per(sentence)
assert "Francois" not in pseudonymized_sentence
assert "Agathe" not in pseudonymized_sentence
assert any(
Expand Down

0 comments on commit cba1607

Please sign in to comment.