Skip to content

Commit

Permalink
test: fixup email test after adjusting the ParsedEmail dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews committed Oct 2, 2024
1 parent 096357b commit 5c2836a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mismo/lib/email/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def f(level: MatchLevel):

raw = (
ibis.case()
.when(e1 == e2, f(EmailMatchLevel.FULL_EXACT))
.when(e1.full == e2.full, f(EmailMatchLevel.FULL_EXACT))
.when(damerau_levenshtein(e1.full, e2.full) <= 1, f(EmailMatchLevel.FULL_NEAR))
.when(e1.user == e2.user, f(EmailMatchLevel.USER_EXACT))
.when(damerau_levenshtein(e1.user, e2.user) <= 1, f(EmailMatchLevel.USER_NEAR))
Expand Down

0 comments on commit 5c2836a

Please sign in to comment.